aut0poietic / adapt-lottie

A component for adding the Bodymovin After Effects plugin
GNU General Public License v3.0
2 stars 2 forks source link

undefined variables in lottie.less #3

Open daledesilva opened 4 years ago

daledesilva commented 4 years ago

When I click publish, I get errors that @component-padding and @button-padding are undefined in the lottie.less file.

By defining those variables at the top of the file it exports fine and works, but is there something gone broken either in the plugin or my install?

Using: Adapt Authoring v0.10.3.

aut0poietic commented 4 years ago

Hey @daledesilva. Sorry I hadn't seen this -- been a wild couple of months.

What version of the Framework are you using? This should work with all 4.x versions of the framework. @component-padding and @button-padding are part of the Vanilla theme for 4.x and, therefore, all themes based on it.

Framework 5.x moved to using BEM and so the Vanilla theme and changed many of the variable names. Unfortunately, I haven't had the availability to move to 5.x with this plugin nor any of my installations.

fosterc1 commented 4 years ago

Hello

I too get the same error when publishing in v5:

Fatal error: { "message": "variable @component-padding is undefined", "type": "Name", "filename": "src/components/adapt-lottie/less/lottie.less", "index": 611, "line": 29, "column": 10, "callLine": null, "extract": [ " position: absolute;", " bottom: @component-padding;", " right: @component-padding;" ] }