Open ayoubmehd opened 2 years ago
next.config.js
/** @type {import('next').NextConfig} */ const nextConfig = { webpack(config) { config.module.rules.push({ test: /\.svg$/i, issuer: /\.[jt]sx?$/, use: ["@svgr/webpack"], }); return config; }, reactStrictMode: true, }; module.exports = nextConfig;
if the issuer option is present the folowing error will be occure:
it works fine without the issuer option
I'm using:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Saw the same thing, landed here
https://github.com/gregberge/svgr/issues/860
Next throw an error when issuer option is present in next.config.js
next.config.js
if the issuer option is present the folowing error will be occure:
it works fine without the issuer option
I'm using: