Common Error Messages
Cannot assign an abstract constructor type
error TS2322: Type 'abstract new () => PartiallyAppliedComponent<...> is not assignable to type 'typeof <Your Component>'.
Cannot assign an abstract constructor type to a non-abstract constructor type.import Component from '@glimmer/component';
import type SomeOtherComponent from './some-other-component';
interface MySignature {
Blocks: {
default: [typeof SomeOtherComponent];
};
}
export default class MyComponent extends Component<MySignature> {}{{yield (component 'my-component' someArg=true)}}import Component from '@glimmer/component';
import type { WithBoundArgs } from '@glint/template';
interface MySignature {
Blocks: {
default: [WithBoundArgs<typeof SomeOtherComponent, 'someArg'>];
};
}
export default class MyComponent extends Component<MySignature> {}Does not satisfy the constraint 'Invokable'
The given value does not appear to be usable as a component, modifier or helper.
Property does not exist on type 'Globals'
Last updated