Open Manc opened 3 years ago
I'm having a very similar problem, except my project doesn't use this plugin. This might be more related to nextjs than to this plugin, unless if NextJs 10 suddenly uses this plugin by default and I missed something.
error - ./components/ui/icon/assets/index.tsx
Error: /..../index.tsx: Plugin name should be specified
at Array.map (<anonymous>)
I'm getting no clues whatsoever what is causing this. The message isn't very helpful. The file it's refering to is importing a couple of .svgs as a helper function.
I agree with @stijn-gravity
Seems NextJS
still struggling with SVGs. Also the error message can be improved.
Package imagemin-svgo released a new major version 9.0.0 a few days ago and it is no longer compatible with this plugin.
When trying to build my Next.js project I get an error like this:
Downgrade to 8.0.0 and the project compiles fine. This might be the clue, but I'm not sure how to apply the change here.