@svgr/webpack compat with webpack5 #15285
Unanswered
CaptainN
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had an issue with trying to get @svgr/webpack working with the latest rc (6.3-rc.10). Basically, I couldn't get @svgr/webpack to work, even though it worked fine before, and works fine with the latest nextjs (v11).
The issue turned out to be that the default asset loader was taking priority over the configured svgr/webpack loader. I tried modifying the config in two ways - using unshift, and using push. Neither let me override the default. I ended up just hacking the test:
Once I did that, the loader worked just fine. Thought I'd share in case anyone has a similar issue, or maybe even has a better way.
Here's my whole config for context (it also has a way to enable readable classnames in storybook output - this should be the default):
Beta Was this translation helpful? Give feedback.
All reactions