I'm trying to deploy a next.js app to netlify and trying to get the output folder but when I run "npm run build" I get an error like: Error: > Build failed because of webpack errors at build (C:\Users\Owner\Desktop\port_frontend\node_modules\next\dist\build\index.js:15:918)
How to fix next.js error: Error: > Build failed because of webpack errors
6.6k Views Asked by Curdarious Bell At
3
Try to install package again, you hvn't update the latest;
OR