Cannot read property 'pop' of undefined
See original GitHub issueBug report
Describe the bug
next build failed after upgrade to 9.2.0
Failed to compile.
chunk commons [initial]
static/chunks/commons.c26e165c.chunk.css
Cannot read property 'pop' of undefined
> Build error occurred
Error: > Build failed because of webpack errors
at build (/home/ubuntu/app/node_modules/next/dist/build/index.js:10:900)
at <anonymous>
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Expected behavior
Build success
System information
- OS: Ubuntu 18
- Version of Next.js: 9.2.0
- Node: 8.12.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:41 (16 by maintainers)
Top Results From Across the Web
Cannot read property 'pop' of undefined || next.js
config.js the project is perfectly working while i am using this a npm run dev can anyone help me here what is the...
Read more >How to Fix TypeError: Cannot read Property 'push' of ...
How to Fix TypeError: Cannot read Property 'push' of Undefined in JavaScript · Calling the method on a variable that was previously set...
Read more >Uncaught TypeError: Cannot read property 'pop' of undefined
we're having this error on the backend editing elements on the visual editor. you can see the contents on preview but nothing is...
Read more >Cannot read property 'pop' of undefined - velog
Detail 과 User 파일 모두 같은 starRate() 함수를 사용하는데 이상하게 User 파일의 starRate() 에서 오류가 발생했다. 방법1. 에러 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

node v10.16.0 - the same error node v12.12.0 - the same error
only thing that helped is adding
in my next.config.js
I found the solution by combine the solution with this comment: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/341#issuecomment-675603278
In my next.config.js under webpack(config)
I hope this will solve issue for whoever runs into it.