Skip to content

Magento 2.4.6 doesn’t load styling

I’m trying to run a local Magento 2.4.6 project.
I’m using Linux, Valet, and Elasticsearch in docker in the project. The connection is running.

These works: composer install, setup:upgrade, setup:static-content:deploy, setup:di:compile, permission is set, elasticsearch status is green. PHP version is 8.1.14.

I can load the project in the browser but it doesn’t load the styling, does anyone know why?

These are the console errors: Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Refused to execute the script from ‘http://project.local/’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

Uncaught TypeError: require.config is not a function at (index):115:13

Im thankful for any help!