1

I am learning Magento2. I installed it but an error occurs while I fire url on browser. I installed Magento on Windows 7 using xampp server but I receive errors like:

  1. Refused to execute script from '' because its MIME type ('text/html') is not executable and strict MIME type checking is enabled.

  2. Uncaught Error: Script error for: js/theme

  3. requirejs.config is not functioning.

Please help me if you have a solution.

Thanks.

Davideas
  • 3,226
  • 2
  • 33
  • 51
Pramod Badgujar
  • 95
  • 1
  • 1
  • 5

2 Answers2

0

You have install successfully , you need to deploy static content. Run the following command from you project directory.

php bin/magento setup:static-content:deploy -f
Dexture
  • 976
  • 1
  • 11
  • 29
0

I was facing this issue on an Adobe Commerce Cloud project. Following below steps helped me to resolve the issue Refused to apply style from 'URL' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

https://stackoverflow.com/a/75515553/9185662

Asrar
  • 427
  • 4
  • 11