I am getting MIME Type errors and page not loading properly with default configuration


I just git cloned trellis and bedrock and only installed one plugin named Elementor. That’s it. Rest everything is the default and ran the development server.

I keep getting mime type errors and I am unable to build using Elementor.

JS gives 404 and CSS doesn’t load.

(index):1 Refused to apply style from ‘http://testing.test/app/plugins/elementor/assets/css/common.css?ver=2.5.8’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):411 GET http://testing.test/app/plugins/elementor/assets/js/common.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)
jquery-migrate.js?ver=1.4.1:23 JQMIGRATE: Migrate is installed with logging active, version 1.4.1
2(index):405 GET http://testing.test/app/plugins/elementor/assets/js/common-modules.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)
(index):411 GET http://testing.test/app/plugins/elementor/assets/js/common.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)

I have further described it here Github Issue

Could any one please help?

Seems that X-Content-Type-Options: nosniff causes it.

How do I correct these issues?

This is how my development wordpress_sites.yml looks.

- canonical: testing.test
local_path: …/site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@example.test
enabled: false
enabled: false
provider: self-signed
enabled: false

Are you installing it via GitHub? If so, their GitHub doesn’t contain the built CSS/JS.

Hey Log1x, you got it.

I was installing via Github and I figured out an hour ago this mistake that I was doing.

Came here to share that its resolved and saw your message. Thank you for the help.

Everything is working great now.

This topic was automatically closed after 42 days. New replies are no longer allowed.