I was deploying my next js website using vercel. But it stucks here. Help me out plz.
Below is my next.js.config
module.exports = {
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"]
});
return config;
},
};
I've got a similar problem.
Module not found: Can't resolve '@svgr/webpack' in '/home/ihtisham-khattak/Atarim/app_wpfeedback/src/components'
With the current version of node, and npm
node: v14.20.1
npm: 6.14.17
. In my case the problem is solved by deleting the node_modules
and package-lock.json
files and run the npm install
command in the terminal. I hope in your case this trick will be work.