Closed aklkv closed 4 months ago
this is an extra troll as well, because templates/components
was the folder used for all component hbs files pre-Octane.
It'd be good to drop support for that pattern entirely in Glint so that this bug can be fixed.
I would be surprised if glint is the only thing that breaks when using a route named "components".
We're planning to drop support for components putting their template files into templates/components/*.hbs
at ember 6.0, but before that point components very much might resolve template files there. In your example, if you happen to have a component named "text", ember will probably try to resolve your templates/components/text.hbs
as its template.
It would be good to do a review across the whole stack to see what still treats templates/components
as special, since those are all places that can get cleaned up at ember 6.0.
If we have structure like:
and the content of the
route.ts
:we get the following glint error:
Anything outside of
template/components
folders works just fine. I am guessing there might be some naming clash.I can also publish repro if needed