question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error after upgrading from 9.3.6 to 9.4

See original GitHub issue

Bug report

Describe the bug

Upgrading next from 9.3.6 to 9.4.0, then running npm run dev is throwing an error.

To Reproduce

Upgrade next.js + npm run dev.

Screenshots

error - ./node_modules/next/dist/next-server/lib/side-effect.js
Module not found: Can't resolve '@babel/runtime/helpers/assertThisInitialized' in '/Users/aroca/front/node_modules/next/dist/next-server/lib'
Error: Cannot find module '/Users/aroca/front/.next/server/static/development/pages/_document'
Require stack:
- /Users/aroca/front/node_modules/next/dist/next-server/server/load-components.js
- /Users/aroca/front/node_modules/next/dist/next-server/server/api-utils.js
- /Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js
- /Users/aroca/front/node_modules/next/dist/server/next.js
- /Users/aroca/front/server/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1014:15)
    at Function.Module._resolveFilename (/Users/aroca/front/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:884:27)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.loadComponents (/Users/aroca/front/node_modules/next/dist/next-server/server/load-components.js:24:25)
    at DevServer.findPageComponents (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:567:60)
    at DevServer.renderErrorToHTML (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:861:33)
    at DevServer.renderErrorToHTML (/Users/aroca/front/node_modules/next/dist/server/next-dev-server.js:22:915)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async DevServer.render (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:552:22)
    at async Object.fn (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:402:17)
    at async Router.execute (/Users/aroca/front/node_modules/next/dist/next-server/server/router.js:134:32)
    at async DevServer.run (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:517:29)
    at async DevServer.handleRequest (/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js:153:20) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/aroca/front/node_modules/next/dist/next-server/server/load-components.js',
    '/Users/aroca/front/node_modules/next/dist/next-server/server/api-utils.js',
    '/Users/aroca/front/node_modules/next/dist/next-server/server/next-server.js',
    '/Users/aroca/front/node_modules/next/dist/server/next.js',
    '/Users/aroca/front/server/server.js'
  ]
}

As more details, I’m using Preact + custom server.

System information

  • OS: macOS
  • Version of Next.js: 9.4.0
  • Version of Node.js: 14.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

64reactions
taylorbryantcommented, May 12, 2020

@aralroca Have you tried deleting the .next directory and running npm run dev again?

5reactions
kodai3commented, May 18, 2020

i have similar error, but cannot find ./next/build-manifest.json for mine (just cache/ and server/ folders are created in .next/, no static/ or jsons) trying to reproduce on minimal repo but no luck so far, did anyone find workaround for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to downgrade KerioControl 9.4.x to 9.3.6p1
In your KerioControl user interface, go to Advanced Options / Software update. In the section “Upgrade by uploading binary image file”, click on...
Read more >
Targets can't be updated after core 9.4.5 update (ok as of 9.4.6)
Following up that the original core change causing this has been reverted, so when 9.3.6 (correction) 9.4.6 comes out, this module should ...
Read more >
About iOS 9 Updates - Apple Support
iOS 9.3.6 addresses an issue that could impact GPS location performance and could cause system date and time to be incorrect. This update...
Read more >
Is there a way to downgrade core from 9.3.6 to 9.2.7?
The real solution is to always make a database backup (and code backup if you are not using version control) before updating anything....
Read more >
Jetty SSL problem after upgrade - unknown protocol
Jetty 9.3.x and 9.4.x have different Cipher Suite exclusions. Jetty 9.3.6.v20151106 looks like this .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found