-
Notifications
You must be signed in to change notification settings - Fork 5
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
Init loading issue/ white map field... compiling problem? css minimizer plugin issue? #45
Comments
maybe broken production build? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unexpected_token |
maybe this could be helpful |
this could be the proper answer to this issue: I think the problem is cache + some non-existing script file.
2) Additionally I think it has something to do with caching some parts of the application. Probably on your deploy you remove the old files, but the application is still looking for the old files with some previous hash: main.XXXXX.js. But during the deploy you removed those files completely and uploaded new scripts: main.YYYYYY.js. Check the developer tools that all scripts return the expected JS file response and in case any of them are missing make appropriate changes to your cache headers and/or deployment scripts. |
Hi @traveller195 - I think it’s super helpful leaving your notes and learning here, keep going! Because you say the error only occurs outside the intranet, I would look at the gateway server cache behaviour again, as suggested in the SO answer you link to above. The production build produces new JS/CSS files with a short random string in each filename. The HTML served from the app (and NGINX) then refers to the new files. If the gateway server is serving cached HTML responses, the browser will try to request the old JS/CSS, and may fail. Once the gateway cache is refreshed, the problem would go away. The warning about a missing source map is just a warning, and can be ignored as long as you don’t need to inspect the bootstrap CSS in production. |
further solutions:
|
Describe the problem
Ater compiling a new production build, sometimes the following problem occures:
Warning in production build compiling:
Css Minimizer Plugin: Ignoring local source map at "bootstrap.min.css.map" as resource is missing.
More information
maybe compare: pkp/healthSciences#117
The text was updated successfully, but these errors were encountered: