0

Site is working fine in developer mode but when we put the site in production mode there are different files showing 404 in console and these seems default files of magento but the path of the file they are showing there is no such file even in developer mode.

Some of the error message are :

http://127.0.0.1/magento24/static/frontend/MageTheme/child/en_US/domReady.js 404 (Not Found)
Refused to execute script from 'http://127.0.0.1/magento24/static/frontend/MageTheme/child/en_US/domReady.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Refused to execute script from 'http://127.0.0.1/magento24/static/frontend/MageTheme/child/en_US/jquery-ui-modules/widget.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
 Refused to execute script from 'http://127.0.0.1/magento24/static/frontend/MageTheme/child/en_US/jquery-ui-modules/core.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Refused to execute script from 'http://127.0.0.1/magento24/static/frontend/MageTheme/child/en_US/mageTranslationDictionary.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
require.js:168 Uncaught Error: Script error for "domReady", needed by: domReady!_unnormalized2, domReady!_unnormalized3
https://requirejs.org/docs/errors.html#scripterror
 at makeError (require.js:168:17)
 at HTMLScriptElement.onScriptError (require.js:1738:36)

JS minify, merge, bundling everything is disabled, Also I have reset all file permissions, Use default htaccess of magento, try using virtual host but the issue is still the same.

asked Sep 19, 2024 at 11:08
2

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.