next-svgr icon indicating copy to clipboard operation
next-svgr copied to clipboard

Next 11 breaks the plugin

Open mikestopcontinues opened this issue 3 years ago • 1 comments

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],
        ],
      };

mikestopcontinues avatar Jun 19 '21 08:06 mikestopcontinues

You can also yarn add next@canary as this is fixed in the v11.0.1 release.

knightspore avatar Jun 21 '21 10:06 knightspore