Theme compile error - Mendix Data Widgets Marketplace

0
Hi, When importing the Mendix Data Widgets (https://marketplace.mendix.com/link/component/116540) I get the following error: Error Code: CE6093 Error Message: The theme could not be compiled: Error: Undefined variable. , 30 | @media screen and (min-width: $screen-lg) { | ^^^^^^^^^^ ' C:\...\...\...\...\...Main App Directory...\themesource\datawidgets\web\gallery.scss 30:39 @import themesource\datawidgets\web\main.scss 7:9 @use C:\...\...\...\...\...Main App Directory...\deployment\main.scss 4:1 root stylesheet Re-downloading the widget doesn’t fix it. Is it broken or should I change something in my theme folder setup? I’m on 9.6.6.
asked
2 answers
1

For anyone else running into this error. It’s most likely caused by an upgrade from a Mendix 8 or lower app that was using Atlas Core 2. In Mendix 9 you have Atlas 3. If you’re coming from an Atlas 2 app, your theme folder is structured differently.

The Data Widgets app uses the “core” variables from Atlas 3 in it’s styling. The fix for me was changing 1 line in the file themesource > datawidgets > web > main.scss, Line 1:

1 @import "../../../theme/styles/web/sass/main";

 

answered
0

Apparently someone else ran into the same issue, but no fix: https://forum.mendix.com/link/questions/111989

answered