I’m currently working through the developer documentation to build a theme for version 9. (Still learning, never used npm and laravel mix much)
I’m stuck at the chapter “Enabling customization in themes” → " Move SASS Into the Theme Directory" (here)
After I moved and updated the files, when I run “npm run production” I get an error:
SassError: Can’t find stylesheet to import. 2 │ @import “@concretecms/bedrock/assets/bedrock/scss/frontend”;
I double-checked multiple times If I made a mistake somewhere but couldn’t find one.
I don’t understand what the problem exactly is. Up until this point everything was working fine.
I do understand that there is a problem with the @import “@concretecms/bedrock/assets/bedrock/scss/frontend”; but I don’t know what exactly and how to solve it.
yes, I did.
Everything worked fine (‘npm run production’ and ‘npm run watch’) while working through the documentation/tutorial.
Until I got to the section linked above.
I would like to understand the error message.
Perhaps the problem is, that I don’t understand what @import “@concretecms/bedrock/assets/bedrock/scss/frontend”; exactly does.
I think do understand what a @import of a scss file does. Much like a php include, it simply includes the scss file from the path specified, correct?
But what does @import “@concretecms/…” exactly do?
While that’s great news, I suspect that’s not really a solution for the problem rather than some sort of hack. I fear I’ll run into more problems later on with this.
Is there an error in the documentation? Or is there something wrong on my part?
works as well.
That makes sense to me, providing the cause of the problem is that it was pointing to a folder no longer existing.
It’s not optimal but it prevents me from having the entire “node_modules”-folder inside the theme directory.
So, it somewhat solved the problem but unfortunately doesn’t explain the cause of said problem.