cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento 2.3?

How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento 2.3?

Magento Version : 2.3.0

 

As per my client requirement, i was upgraded magento 2.3.0 from 2.2.6.

All functionality works properly but always show following error into inspect element console.


magento2.3error.png


Please suggest me how can i fix it into magento version 2.3 ?

4 REPLIES 4

Re: How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento

Hello @yagnik_solanki,

For your problem, you can check for .htaccess file in pub/static directory.

Adding this file from a clean Magento 2 installation might solve your problem.

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

Re: How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento

Thanks for reply,

 

Already tried your solution but not working well.

 

Also tried all solution available for this error but still error occurred.

 

Re: How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento

Hi @yagnik_solanki 

 

To fix this issue,

                     

  1. Go to file path pub/static/

  2. Check whether the .htaccess file is available (hidden file - Press ctrl+H to view it).

  3. If not available, you can download .htaccess file in the file path pub/static/ and move it into your server.

  4. Finally, clear your browser and Magento cache and check again.

Another way if .htaccess is present in pub/static folder try to redeploy static view files by running:

 

php bin/magento setup:static-content:deploy -f

 

 ------------------------------------------------
If you've found one of my answers useful, please give"Kudos" or "Accept as Solution"

Re: How to fix its MIME type ('text/html') is not a supported stylesheet MIME type error in magento

Thanks for reply,

 

I was already tried above solution but still same error occurred after run static deploy command.