T
TanStack5w ago
other-emerald

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module

got this error in browser console after a reployment on docker with srvx.
No description
8 Replies
mute-gold
mute-gold5w ago
how do you start srvx ?
other-emerald
other-emeraldOP5w ago
pnpx srvx --prod -s ../client dist/server/server.js
pnpx srvx --prod -s ../client dist/server/server.js
mute-gold
mute-gold5w ago
is the assets folder in the client folder? does it work locally?
other-emerald
other-emeraldOP5w 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
mute-gold5w ago
yes thats why Netlify, vercel etc have skew protection
other-emerald
other-emeraldOP3w ago
do you have any idea on how to do the skew protection on self hosted docker?
mute-gold
mute-gold3w ago
you would need to keep old assets instead of just serving the latest ones

Did you find this page helpful?