500: Failed to fetch dynamically imported module
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:1
- Comments:31 (12 by maintainers)
Top 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 >
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
Hi got the latest sveltekit, got this error Failed to fetch dynamically imported module:
For me, it was an adblocker blocking some resources (i.e., there was an “ads” somewhere in the URI).