Theme compile error (CE6093) Cant find stylesheet to import

6
Hi all   I have just booted up my app in mendix studio pro and was greeted by an error: The theme could not be compiled: Error: Can't find stylesheet to import. , 15 | @import "core/_legacy/bootstrap/bootstrap"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ' C:\Users\lpu\Documents\Mendix\{appname}\themesource\atlas_core\web\main.scss 15:9 @use C:\Users\lpu\Documents\Mendix\{appname}\deployment\sass\main.scss 11:1 root stylesheet - - -   It seems as though it can’t find any stylesheets in the atlas_core\web\core\legacy\bootstrap folder, but they are both there.   main.scss:   bootstrap folder: How can I fix this?   Thanks.
asked
5 answers
1

Hi, did you manage to solve this issue? I’m facing the same problem.

answered
1

same here, any answers?

answered
1

have you tried syncing?
usually fixes directory problems.

 

 

ps: the underscore is a compiler thing, it doesn't need an underscore in the import line.

answered
0

facing same problem, any solution?

answered
0

Your file starts with an underscore. Did you try to add it:

@import "core/_legacy/bootstrap/_bootstrap";
@import "core/_legacy/bootstrap/_bootstrap-rtl";

or
@import "core/_legacy/bootstrap/_bootstrap.scss";
@import "core/_legacy/bootstrap/_bootstrap-rtl.scss";

After changing these lines, click in F4 aka App > Synchronize App Directory

answered