8000 If route is named `components` model types are not inferred · Issue #720 · typed-ember/glint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
If route is named components model types are not inferred  #720
Closed
@aklkv

Description

@aklkv

If we have structure like:

templates/
  components/
    text.hbs
routes/
  components/
    text.ts

and the content of the route.ts:

import Route from '@ember/routing/route';

export default class ComponentsTextRoute extends Route {
 model() {
   return {
     message: 'Components Text Route',
   };
 }
}

we get the following glint error:

Screenshot 2024-05-17 at 12 17 09 PM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0