-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Typescript support OOTB - almost there, something @glimmer/validator
is missing
#20329
Comments
I'm thinking for apps and v1 addons, we should generate a For those running in to this right now though, you can work around the issue by setting overrides/resolutions for example:
|
@NullVoxPopuli there's also |
I was diagnosing a type checking issue that happens when using I updated my I then updated my A separate troubleshooting step I took was to install [email protected], generate a new application from that, and test. After generating the application, I updated |
Heyo,
I was updating my OSS packages the past days and was happy to see the typescript changes in action, this is amazing 🎉👏
Typescript support was delievered out of the box, after I upgraded those packages. Except, I had to pull in an updated dependency of
@glimmer/validator
- which my guess is one of these packages needs to declare this as dependency itself - I dunno which one though (which I'm opening the ticket for)Here is the main packages I upgraded to make this work. This is an ember (test) app (with
ember-cli-typescript
) (usually as part of an addon v2), so pretty basic and "empty". Here are the relevant dependencies:Here is
types/index.d.t.s
for completeness (link for repo at the end):so, these are the
@types/*
packages left, that are still needed (for me). When I runtsc --noEmit
, I'm down to this error:This is trying to consume
@glimmer/[email protected]
but at the time of writing this,@glimmer/validator
is available in versionv0.84.2
- almost quite doubled the version. When I add this as dev dependency:@glimmer/[email protected]
- then checking for types does not complain anything.Reference repo: https://github.com/gossi/frontend-configs/tree/main/testing/ember-app
Ref: #20162
The text was updated successfully, but these errors were encountered: