Failed to fetch dynamically imported module #1352
Unanswered
grantholle
asked this question in
Help
Replies: 1 comment
-
I handle this issue with https://vite.dev/guide/build#load-error-handling
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've found that after I deploy and users are still in the app, they start getting "Failed to fetch dynamically imported module" errors because the hash in the filename gets changed. This post describes the issue in the last update. I need the cache-busting help with the hash, but also don't want a flood of those errors coming in...
Is there a way we can catch that error and just reload the page? Is that something I can put in the
resolve
inside of thecreateInertiaApp()
call?I know this is a combination of Vite + Inertia, but since Inertia is what resolves the component I came here first 😄
Beta Was this translation helpful? Give feedback.
All reactions