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.

TypeError: Failed to fetch dynamically imported module after upgrading to v9.3.5

See original GitHub issue

Bug report

Congratulations on the new release! Just upgraded to 9.3.5 from 9.1.0 and we’ve run into TypeError: Failed to fetch dynamically imported module http://localhost:8081/_next/static/runtime/dev/noop

Describe the bug

The bug is not breaking our build but is showing in the browser console. next errors zoome

To Reproduce

yarn upgrade next@latest yarn build next dist --p 8081

Expected behavior

Not having errors in the console

System information

  • OS: macOS Catalina 10.15.3
  • Browser: Chrome 80
  • Version of Next.js: 9.3.5
  • Version of Node.js: 10.17.0
  • Version of Yarn: 1.22.4

Aditional Information

Here are some of our dependencies that I think are interacting with next

    "@types/react": "16.9.1",
    "@types/react-dom": "^16.9.0",
    "@types/webpack": "^4.4.34",
    "@zeit/next-css": "^1.0.1",
    "@zeit/next-mdx": "^1.2.0",
    "babel-loader": "^8.0.6",
    "concurrently": "^4.1.1",
    "copy-webpack-plugin": "^5.1.1",
    "csstype": "2",
    "http-server": "^0.11.1",
    "next": "^9.1.0",
    "next-images": "^1.1.0",
    "react": "^16.9.0",
    "react-dom": "^16.9.0",
    "react-helmet": "^5.2.1",
    "webpack": "^4.17.1",
    "webpack-cli": "^3.1.0"
  },
  "resolutions": {
    "react": "16.9.0"
  },
  "peerDependencies": {
    "react": ">= 16.8.0 < 17",
    "react-dom": ">= 16.8.0 < 17",
  },

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
timneutkenscommented, Apr 23, 2020

Guess this can be closed since it’s not an issue directly in Next.js?

1reaction
ijjkcommented, Apr 22, 2020

It sounds like the security alert you may be referencing is the one for Regular Expression Denial of Service in acorn. This alert is triggered as dangerous since the security alerts don’t take into account where the code is being used. In this case acorn is used to process code you have added to the project. acorn is also only used during build time and should not be included in resulting build bundles at all.

It is best to not try to manually resolve packages like this and let us maintain the correct versions of packages unless you are sure the versions are compatible with all the packages that rely on it and it doesn’t make sense for the package to be updated upstream also. In this case it does not appear to be compatible with all installed packages causing the above error

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Failed to fetch dynamically imported module after ...
Just upgraded to 9.3.5 from 9.1.0 and we've run into TypeError: Failed to ... TypeError: Failed to fetch dynamically imported module after ......
Read more >
Failed to fetch dynamically imported module: - Stack Overflow
I believe this error is similar to the 'ChunkLoadError' ( which is also faced in many other framework, not just React), attaching a...
Read more >
error loading preloads: failed to fetch dynamically imported ...
Because I'm offline, the module loading will result in an error of Failed to fetch dynamically imported module . The app notifies the...
Read more >
Failed to fetch dynamically imported module | Blazor Forums
Hi Alex / Riccardo / Bibek, · Thanks for your detailed update. · Currently, we are validating your reported issue as per your...
Read more >
Firebase JavaScript SDK Release Notes - Google
The earlier update in version 9.13.0 upgraded TypeScript only in the root. Fixed a bug that caused Firebase SDKs to throw an error...
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