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)
Asked
Active
Viewed 6,216 times
1
-
1Can you provide any more info on the errors? Is there a build log perhaps? – Alex Oct 17 '20 at 13:58
3 Answers
0
Try to install package again, you hvn't update the latest;
npm install
npm run build
OR
yarn install
yarn build

Wilker
- 551
- 2
- 6
- 21