Skip to Main Content

Redwood.css not loading in web folder after migrating from 10.1.0 to 11.0.0?

Ajesh MJul 15 2021 — edited Jul 16 2021

After migrating from 10.1.0 to 11.0.0. As instructed in developer book.
I have noticed that redwood.css is not present inside redwood css web folder.
But it can be seen inside the staged-theme folder.
I'm building the project with custom theme. Custom theme, custom file is generated but not the redwood.css
To find the problem, i have created new project with 11 added a custom theme with using command
"ojet create theme customTheme --basetheme=redwood"
After building this i'm still getting the error as follows: "Refused to apply style from 'http://localhost:8000/css/redwood/11.0.0/web/redwood.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."
When i go deeper I found that redwood css is not generated in webfolder. But it is generated in staged-themes
If i create the theme using stable
"ojet create theme customTheme --basetheme=stable"
and then run the project both stable.css and customeTheme.css are generated

This post has been answered by John JB Brock-Oracle on Jul 16 2021
Jump to Answer
Post Details
Added on Jul 15 2021