Uncaught (in promise) TypeError: Failed to fetch dynamically imported module
got this error in browser console after a reployment on docker with srvx.

8 Replies
other-emeraldOP•5w ago
i found this https://github.com/vitejs/vite/pull/20313/files#diff-591755fcd41dbf3ede4a850f0598f6a1c479db1e22ff5d62a4f1b76574559d81R171
it says:
If you are using a framework, refer to their documentation first as it may have a built-in solution for this problem.related: https://discord.com/channels/719702312431386674/1193996845144359114 https://discord.com/channels/719702312431386674/1007702008448426065/1105491200921841694 https://discord.com/channels/719702312431386674/1007702008448426065/1347600587012833402 https://discord.com/channels/719702312431386674/1333557517254398065/1333557517254398065 https://discord.com/channels/719702312431386674/720768118963699783/1418561747584811102 https://github.com/TanStack/router/issues/4410
mute-gold•5w ago
how do you start srvx ?
other-emeraldOP•5w ago
mute-gold•5w ago
is the assets folder in the client folder?
does it work locally?
other-emeraldOP•5w ago
ah. it works locally and remotely. it does not work remotely after a new deployment on the server. i think it's the stale asset versions issue.
as pointed out in several links i attached above
mute-gold•5w ago
yes thats why Netlify, vercel etc have skew protection
other-emeraldOP•3w ago
do you have any idea on how to do the skew protection on self hosted docker?
mute-gold•3w ago
you would need to keep old assets instead of just serving the latest ones