Reputation: 21
I have a next.js project where the dev server is suddenly not loading the page anymore.
The next.js dev server never serves JavaScript assets, and they remain in a "pending" or "stalled" state in Chrome dev tools.
Screenshot of Chrome Dev Tools Network panel
There is no output on the server or front-end console. How do you debug this?
package.json
"dependencies": {
...
"next": "13.0.2",
"react": "18.2.0",
"react-aria": "^3.19.0",
"react-dom": "18.2.0",
"react-stately": "^3.17.0",
...
},
http://localhost:3000/
, http://localhost:3000/specific/paths
.next/
and rebuildnode_modules/
, reinstall and rebuildnext dev -p 1234
console.log
statements in various components and see that they all give expected output on the server.Upvotes: 1
Views: 576
Reputation: 21
Opening in another browser (Safari in my case) it seems to work fine. I closed and reopened Chrome, and now it works fine.
The bug seems to possibly be related to Chrome itself. Seen on Version 108.0.5359.124 (Official Build) (arm64)
Hopefully anyone seeing a similar error can benefit: Try restarting your browser.
Upvotes: 1