-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Import of dynamic component with ssr: false that fails should log an error somehow #2898
Comments
This really could post some error notification on bad loading. Same behaviour with mapbox-gl. Mapbox-GL can't by minified with Uglyfier and must be skiped with webpack noParse. But find this problem takes some time, because in development env it work, in production doesn't. And no error in console :/ |
Is there a workaround to at least showing the error that is causing a problem? I'm not using mapbox-gl, but I do have non-ssr dynamic imports that are stuck at loading. They load fine in development, but in production they just hang at loading... and nothing ever gets logged. |
My issue is caused by trying to dynamically load a component that imports CSS modules. Moving the CSS module to the Page component that was loading the child component resolved my issue, but seeing some kind of error message would have obviously made this much easier. |
Looks like this one should be closed too, as long as fix is there. |
Expected Behavior
When I'm using some dynamic component with SSR: false that is crashing I expect it to see the error somehow.
Current Behavior
Аpp is just stuck in "loading..." page state: no page error, no console output, no term output.
Steps to Reproduce (for bugs)
Context
Some 3rd-party libs are validating the initial options by throwing an error (e.g. Auth0); it makes nearly impossible to debug them
Your Environment
The text was updated successfully, but these errors were encountered: