0

Installed Magento2.x in MacOs with Nginx. Setup everything is completed. When I run the website in the frontend, css/ js not loading showing 404.

Actually css/js present in the location but showing 404

Below is the Error Message : 
Refused to apply style from 'http://local.mydomain.com/static/frontend/Vendor/mytheme/en_US/mage/calendar.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

When I access the css through browser , it showing below error

Requested path /static/frontend/Vendor/mytheme/en_US/mage/calendar.css is wrong. 
<pre>#1 Magento\Framework\App\Bootstrap->run() called at [pub/static.php:13]
</pre>

Note : Issue with only CSS/ JS only. If I put the .php file in the same path, able to access it.

Please dd your suggestions to fix it. spend couple of days and tried all options.

Tried, Permission of folder, Cache clear, static-deploy.

Website should load with css and js

asked Jun 20 at 23:35

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.