next-svgr
next-svgr copied to clipboard
Next 11 breaks the plugin
Next 11 now has built in image loaders that get in the way of this plugin. You can do something like this:
cfg.module.rules[2] = {
oneOf: [
{
test: /\.svg$/,
use: ['@svgr/webpack'],
},
cfg.module.rules[2],
],
};
You can also yarn add next@canary
as this is fixed in the v11.0.1 release.