glint
glint copied to clipboard
Decorators not happy in ember-route-template
Not happy with decorators when using class components in ember-route-template:
export default RouteTemplate(
class PetsEditRouteComponent extends Component<PetsEditRouteSignature> {
@service declare router: RouterService;
//^ Decorators are not valid here.glint(1206)
My tsconfig.json
{
"extends": "@tsconfig/ember",
"compilerOptions": {
// The combination of `baseUrl` with `paths` allows Ember's classic package
// layout, which is not resolvable with the Node resolution algorithm, to
// work with TypeScript.
"baseUrl": ".",
"paths": {
"afd/tests/*": ["tests/*"],
"afd/*": ["app/*"],
"*": ["types/*"]
},
"lib": ["DOM", "dom.iterable", "ES2023"],
"experimentalDecorators": true
},
"include": ["app/**/*", "tests/**/*", "types/**/*"],
"glint": {
"environment": ["ember-loose", "ember-template-imports"]
}
}
what's "not happy"? is there an error? stack? etc?
I put it in the comment above, but that might have been easy to miss
I think this is resolved!
(in 1.5)
@NullVoxPopuli confirmed