-
Notifications
You must be signed in to change notification settings - Fork 887
refactor(site): Refactor error state #7313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(site): Refactor error state #7313
Conversation
Btw this doesn't fix #7300 it just refactors the error trace. |
It is a work around since a true fix is not possible and there is no prevision for that - we depend on vite but I'm almost sure it is kinda an hard problem - the build would have to keep the previous build files on the server. It is a workaround because after refresh the page, the index.html will be updated and reference the updated assets names. |
error: Error | ||
} | ||
const fetchDynamicallyImportedModuleError = | ||
"Failed to fetch dynamically imported module" as const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to cast this as const
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember, I think it was Co-pilot 🤔 I will remove it since does not influence anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Before:

Now:

GitHub issue prefilled:


Fix #7300