-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Types issues in v4 ? #1416
Comments
Ok just figured out it's related to #1392 . But why was it closed? |
as per the last comment in that thread, that person's problem was because we hadn't published the type constraint yet so unless you also haven't updated to latest 4.x, that issue is unrelated and has correctly been closed
if removing that doesn't help, let me know. it could be that you need to |
I'm seeing the same problem.
|
Which doesn't make much sense since it always had an Can you tell us exactly which versions it installed? ( And when you mouse over If you jump to the definition of |
Thank you, indeed my @types/node was outdated! 🫢 It's now working fine with @types/node 22.10.10 . |
Yep the same for you @JoshuaHintze , the version of If you update that, it'll probably work fine |
Thanks @43081j - I'm curious doesn't @types/node 22.X.X mean you are using node 22 LTS? If we are actually using Node 20.X.X wouldn't that be an issuse, Or perhaps you are saying that they typedef maintainers missed a key piece that has always been in there? What is the min requirement for v4 chokidar? |
It's purely a types thing so it doesn't align to a version of node. Since node had event emitters (long ago), this was the correct type. At some point they fixed the types but that is nothing to do with any particular node support In JavaScript, the class has existed for a very long time and hasn't changed much. The types improved separately to better define it I'm not sure how the DT contributors deal with their versions. In most DT packages, the version is nothing to do with the source package version. With the node types though, I'm not sure. You may have to go ask the node DT contributors |
Describe the bug
Just upgraded my project from v 3.6 to v4. Worked without hassle, but some type definitions seem to be broken in v4.
Versions:
To Reproduce:
The text was updated successfully, but these errors were encountered: