vite-plugin-svgr
vite-plugin-svgr copied to clipboard
Failed to build - Module '"svgo"' has no exported member 'OptimizeOptions'
Failed to build React TS (pnpm) project with following error:
> tsc && vite build --mode dev
node_modules/.pnpm/@[email protected]/node_modules/@svgr/core/dist/index.d.ts:2:10 - error TS2305:
Module '"svgo"' has no exported member 'OptimizeOptions'.
import { OptimizeOptions } from 'svgo';
Packages:
"vite-plugin-svgr": "^2.4.0"
"@types/svgo": "^3.0.0"
vite.config.ts
import svgr from 'vite-plugin-svgr'
plugins: [react(), svgr(), basicSsl()]