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
JS files are blocked when reloading the page #22501
Comments
I believe this kind of error means that the server does serve a 404 page (which has a text/html content type) instead of sending a JavaScript file. Does this file come from a custom app? Maybe try to check in the Maybe this problem is related to the new build system based on eslint, which might have happened between v12 and v13 (I don't remember sorry). |
@cogk Thanks for the help. The server return a HTML page instead of the JS file, but it is not because it cannot find the JS file. It is because the URL is incorrect. I looks the asset page of ERPNext and not the JS file. I think this is because the URL is incorrect. The URL is: //192.168.1.41/app/assets/production_batch/js/jsgantt.js, but this should be //192.168.1.41/assets/production_batch/js/jsgantt.js I have created a GIF with the problem and how I can get the JS file the the browser. Any idea how I can fix the URL? |
Okay, and how is |
@cogk YESSSSS, it is fixed. The problem was the |
Issue
I have a selfhosted ERPNext server which is upgraded from v12 to v13. I have finished the upgrade and all of the data and apps are working. The only problem is that my public JS files are blocked when I reload the page. Everything works when I login for the first time or clean my cache/cookies, but when I refresh the page then my JS files are blocked. This is because the MIME type is mismatch (see screenshot).
I have upgrade ERPNext and Frappe to version 13
Steps to reproduce the issue
Any idea where I can look to fix this?
The text was updated successfully, but these errors were encountered: