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.

500: Failed to fetch dynamically imported module

See original GitHub issue

Describe the bug

I am encountering some issues when deploying my project to vercel using the vercel-adapter. The project builds but then the deployed site I receive 500 Failed to fetch dynamically imported module: https://xxx.vercel.app/_app/undefined

The vercel build is triggered by a new Gitlab commit.

Does someone have an idea what could cause this issue? The weird thing is that it works with npm run build but not on the deployed vercel site…

Reproduction

This should be reproducable by using the same sveltekit + adapter versions

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    Memory: 13.49 GB / 31.91 GB
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 97.0.4692.71
    Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.55)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.10
    @sveltejs/adapter-vercel: next => 1.0.0-next.36
    @sveltejs/kit: ^1.0.0-next.225 => 1.0.0-next.225
    svelte: ^3.46.0 => 3.46.0

Severity

blocking all usage of SvelteKit

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:31 (12 by maintainers)

github_iconTop GitHub Comments

23reactions
bitdom8commented, Mar 3, 2022

Hi got the latest sveltekit, got this error Failed to fetch dynamically imported module:

10reactions
lazharichircommented, Jun 8, 2022

For me, it was an adblocker blocking some resources (i.e., there was an “ads” somewhere in the URI).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to fetch dynamically imported module: - Stack Overflow
One attempt to fix this issue, try to catch the error and force a reload to refetch the resource, but make sure to...
Read more >
Failed to fetch dynamically imported module : r/sveltejs - Reddit
It works as expected locally in dev and preview. The problem is that when deployed to Vercel (https://sveltekit-firebase-ssr.vercel.app/) SSR ...
Read more >
Error: Failed to fetch dynamically Dashboard imported module
Uninstall TBM · Go to installation folder and delete everything except: \resources\bin\database folder · Just in case, take a note how many files ......
Read more >
vite failed to fetch dynamically imported module - You.com
One attempt to fix this issue, try to catch the error and force a reload to refetch the resource, but make sure to...
Read more >
Abuse of Beauty erc721 - NFTPrime
500 : Failed to fetch dynamically imported module: https://www.nftprime.com/_app/pages/collection/_guid_.svelte-4cbd85e4.js. FAQ Terms and Conditions.
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