diff --git a/src/withSvg.js b/src/withSvg.js index b715a32..5ea7c8d 100644 --- a/src/withSvg.js +++ b/src/withSvg.js @@ -3,7 +3,7 @@ const withSvg = (nextConfig = {}, nextComposePlugins = {}) => { webpack(config, options) { config.module.rules.push({ test: /\.svg$/, - use: ["@svgr/webpack"] + use: [require.resolve("@svgr/webpack")] }); if (typeof nextConfig.webpack === "function") {