Using with @svgr/plugin-svgo fails with following error.
Using vite-plugin-svgr without @svgr/plugin-svgo works.
/Users/devunt/workspace/ccoli/frontend/src/assets/logo.svg:1:102: ERROR: Expected "}" but found ":"
at failureErrorWithLog (/Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/lib/main.js:1624:15)
at /Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/lib/main.js:1413:29
at /Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/lib/main.js:678:9
at handleIncomingPacket (/Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/lib/main.js:775:9)
at Socket.readFromStdout (/Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/lib/main.js:644:7)
at Socket.emit (/Users/devunt/workspace/ccoli/frontend/lib/events.js:513:28)
at Socket.emit (/Users/devunt/workspace/ccoli/frontend/lib/domain.js:489:12)
at addChunk (/Users/devunt/workspace/ccoli/frontend/lib/internal/streams/readable.js:324:12)
at readableAddChunk (/Users/devunt/workspace/ccoli/frontend/lib/internal/streams/readable.js:297:9)
at Socket.Readable.push (node:internal/streams/readable:234:10) {stack: 'Error: Transform failed with 1 error:
/Users/….push (node:internal/streams/readable:234:10)', errors: Array(1), warnings: Array(0), frame: '
Expected "}" but found ":"
1 | <svg xmlns=… ^
', loc: {…}, …}
Using with
@svgr/plugin-svgo
fails with following error.Using
vite-plugin-svgr
without@svgr/plugin-svgo
works.