-
-
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
[Preview Types] Conflict with @types/ember__test-helpers
#20254
Comments
Thanks for the report. I'll dig in next week; this is interesting because I've never seen it in the tests I've done, so I'm not sure if something changed, or whether it's a knock-on effect from having the Ember Data |
I probably should have mentioned - Ember Data’s types are not the problem. In my own case I don’t have them and I have the same issue.
Message ID: ***@***.***>
|
@types/ember__test-helpers
Just wanted to confirm this issue. Happening for me as well. |
Thanks for the further report! Hopefully I (or maaaaaybe @jamescdavis or @dfreeman) will have a chance to poke at it later this week! |
Same here, just followed the guide...
|
In that case it's coming from having |
I am also running into a similar issue trying preview types, but I don't have
w/o |
Makes sense. Basically, we need to tackle the rest of #20162 to get these resolved. That's going to be my main focus for a bunch of the rest of this quarter, after getting #20234 done—hopefully next week, now that I’ve finished the work to implement RFC 0821, which we needed for the rest of this! That said, we (I!) could very much use the community’s help: there are a lot of packages which need types! |
Spitballing here since I haven't actually spent the time to fully understand this situation: Is it possible to make a custom package override for |
Conceivably, but we don't want that: in some sense one major point of this precise period is to flush these things out and walk the ecosystem till they're solved! |
@chriskrycho I guess I was thinking more in terms of a temporary workaround for individual apps. |
Right, makes sense. Unfortunately I think any attempt at that would just make this problem worse, or at most equally bad. The problem is that the DT types are showing up transitively, so your dependencies are getting them, not you, so anything you do at the top level will just further confuse things. |
I believe this issue has been resolved with the latest versions of |
🐞 Describe the Bug
Trying to use the new preview-types instead of DefinitelyTyped ones doesn't work as there are errors in
node_modules
.🔬 Minimal Reproduction
Then follow the steps from the migration guide - i.e. remove the unneeded packages from
package.json
, runnpm install
, modify thepreview-types-bug/types/preview-types-bug/index.d.ts
file as shown there, and then run./node_modules/.bin/tsc
. You will get:😕 Actual Behavior
A bunch of errors in
node_modules
.🤔 Expected Behavior
No errors.
🌍 Environment
➕ Additional Context
The problem is that
@types/ember__test-helpers
(which we shouldn't remove according to the guide) requires@types/ember__application
which in turn requires@types/ember
which then requires everything. And there are conflicts between the preview types and the DefinitelyTyped ones.cc @chriskrycho, @wagenet
The text was updated successfully, but these errors were encountered: