-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error importing component classes (TypeScript) #1341
Comments
esbanarango
changed the title
Error exporting component classes (Typescript)
Error exporting component classes (TypeScript)
Jan 27, 2023
esbanarango
changed the title
Error exporting component classes (TypeScript)
Error importing component classes (TypeScript)
Jan 27, 2023
Got the same issue :( |
I think this and #1336 are probably the same bug. |
Fixed in #1342 and I confirmed that it fixes your reproduction. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Bug description
Importing a component class ends up being a different object than the class itself. Preventing extending it or interacting with it.
This works fine without using TypeScript
π¨βπ¬ Example
Trying to stub some properties or methods of a Component class.
When doing:
import TestComponent from 'owner-embroider-issue/components/test-component';
,TestComponent
is no longer a Class, but a different "object", so we can not "extend" it anymore.π Actual Behavior
π€ Expected Behavior
This is the output without using Typescript
π Environment
π App to reproduce the issue
https://github.com/esbanarango/owner-embroider-issue/tree/typescript
The text was updated successfully, but these errors were encountered: