Open awmottaz opened 10 months ago
Ran into this one myself today. Pulling my hair out trying to figure out what was going on.
Edit:
So now knowing that webc:root="override
somehow interferes, I can get around this by putting webc:nokeep
on the component at the "callsite".
If you define a function in
<script webc:setup>
and try to call it to set a dynamic attribute value on an element that is alsowebc:root="override"
, then the build will fail with an error.Example bad component:
Components that are nearly the same but work as expected
Using a static value instead of a function:
Not using
webc:root="override"
:Setting
@text
instead of an attribute: