Module Less not working with defined variable #148
-
Hi, I have added less file as per https://breezefront.com/docs/styles Module Entry points. As per attached screenshot, You can see my _default.less file is in module_dir/web/breeze folder And my variables are defined in my custom theme folder. Now, When I am running deploy, It's giving error for undefined variable. Let me know how can I resolve this issue. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
On your screenshot, Magento compiles your module with the breeze-blank theme. But your variable is not available in the blank theme, since it's declared in the custom theme. p.s. You will get the same error if you will add a new variable into the custom luma-based theme, use it in your luma-based module, and then compile the luma theme with your module enabled |
Beta Was this translation helpful? Give feedback.
On your screenshot, Magento compiles your module with the breeze-blank theme. But your variable is not available in the blank theme, since it's declared in the custom theme.
p.s. You will get the same error if you will add a new variable into the custom luma-based theme, use it in your luma-based module, and then compile the luma theme with your module enabled