When I was walking through enabling recommended Embroider options, I noticed that some components weren't making it into the build after I enabled staticComponents:
"Uncaught (in promise) Error: Attempted to resolve alert/taxlots-off, which was expected to be a component, but nothing was found."
I eventually narrowed down the issue to components that are defined in a subfolder that does not share a name with an existing component. For example, in the directory below, the taxlots-off component will not render (because there is no alert component), but the item component will render (because there is a tabs component).
I tried creating an alert component, but nothing changed until I actually invoked the new alert component. When I added it just above the offending alert/taxlots-off component in the template, the error went away and everything rendered.
Ideally, components should make it into the build regardless of which subfolder they're in and whether or not they have a parent component in the directory (in my opinion).
Here are my potentially relevant package versions:
When I was walking through enabling recommended Embroider options, I noticed that some components weren't making it into the build after I enabled
staticComponents
:I eventually narrowed down the issue to components that are defined in a subfolder that does not share a name with an existing component. For example, in the directory below, the
taxlots-off
component will not render (because there is noalert
component), but theitem
component will render (because there is atabs
component).I tried creating an
alert
component, but nothing changed until I actually invoked the newalert
component. When I added it just above the offendingalert/taxlots-off
component in the template, the error went away and everything rendered.Ideally, components should make it into the build regardless of which subfolder they're in and whether or not they have a parent component in the directory (in my opinion).
Here are my potentially relevant package versions:
And my Embroider config: