cancel
Showing results for 
Search instead for 
Did you mean: 

jquery/z-index.js' because its MIME type ('text/html') is not executable Magento 2.4.5

jquery/z-index.js' because its MIME type ('text/html') is not executable Magento 2.4.5

Hello All
After upgrade to Magento 2.4.5-p1 successfully under admin panel i am facing following error

 

require.js:1895 GET /static/adminhtml/Magento/spectrum/en_US/jquery/z-index.js net::ERR_ABORTED 404
1 Refused to execute script from 'static/adminhtml/Magento/spectrum/en_US/jquery/z-index.js' because its MIME type ('text/html') is not executable,
and strict MIME type checking is enabled.
require.js:166 Uncaught Error: Script error for: jquery/z-index
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:166:17)
at HTMLScriptElement.onScriptError (require.js:1681:36)

Front End Error


JQMIGRATE: Migrate is installed with logging active, version 1.4.1
require.js:1895 GET /static/frontend/myfrontendtheme/nmi/en_US/js-storage/storage-wrapper.js net::ERR_ABORTED 404
req.load @ require.js:1895

6Refused to execute script from '<URL>' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
require.js:166 Uncaught Error: Script error for: jquery/jquery-storageapi
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:166:17)
at HTMLScriptElement.onScriptError (require.js:1681:36)

require.js:1895 GET /static/frontend/myfrontendtheme/nmi/en_US/jquery/z-index.js net::ERR_ABORTED 404
req.load @ require.js:1895

require.js:166 Uncaught Error: Script error for: jquery/z-index
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:166:17)
at HTMLScriptElement.onScriptError (require.js:1681:36)

/static/frontend/myfrontendtheme/nmi/en_US/Magento_Enterprise/favicon.ico:1 GET static/frontend/myfrontendtheme/nmi/en_US/Magento_Enterprise/favicon.ico 404
main.js:44 Error: Script error for: jquery/jquery-storageapi
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:166:17)
at HTMLScriptElement.onScriptError (require.js:1681:36)

/static/frontend/myfrontendtheme/nmi/en_US/Magento_Theme/favicon.png:1 GET static/frontend/myfrontendtheme/nmi/en_US/Magento_Theme/favicon.png 404
console-output-handler.js:34 [2023-01-31 11:46:29] [ERROR] Failed to load the "Magento_Theme/js/view/messages" component.
ConsoleOutputHandler.show @ console-output-handler.js:34

require.js:1895 GET static/frontend/myfrontendtheme/nmi/en_US/jquery/ui-modules/widgets/dialog.js net::ERR_ABORTED 404
req.load @ require.js:1895
load @ require.js:1639
console-output-handler.js:34 [2023-01-31 11:46:30] [ERROR] Failed to load the "Magento_Catalog/js/storage-manager" component.

1 REPLY 1

Re: jquery/z-index.js' because its MIME type ('text/html') is not executable Magento 2.4.5

Got Solution

I was working old lib folder hence i was getting jquery errors.
If you get any such issues please check lib folder and maybe there will be file missing as lib\web\jquery\z-index.js and timepicker.js too.

 

So please update full lib folder and issues will be resolved.