Let’s say I’m using a Glimmer component from an addon that’s initialized like this:
<PowerSelect .../>. This addon is using a co-located template named
components/power-select/trigger.hbs. I want to override this template (use custom html).
Previously when the template wasn’t co-located, I could just override the template by creating a file
app/templates/components/power-select/trigger.hbs. I’ve tried the same here (
app/components/power-select/trigger.hbs), but that’s failing with
Uncaught (in promise) TypeError: can't redefine non-configurable property "default". I think that because creating that file, I’m creating a template-only component, instead of augmenting the addon’s component.
How would I go about replacing an addon’s template?