-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Conflicting @types/node version #3793
Comments
Unable to reproduce following the above instructions, everything compiles on my end without issue even with conflicting Can you try to If that doesn't work I'd need a repo to clone that reproduces this issue as something is key is missing from the reproduction instructions, perhaps some setting in |
Hey @ironicbrew, thanks for looking at it. Before posting it here, I've tried a clean installation exactly as you suggested. It just didn't help. Btw. doesn't it make sense to have that and other @types defined as dependencies (non-dev)? |
I was about to open a different issue about moving |
@andrejleitner, Are you using any additional config in your Only other thing I can think of is if you fork the repo and switch the troublesome dependency to a devDependency as suggested by @Sumolari and then npm install that it would be interesting to see if that resolved the issue. |
@andrejleitner I could indeed reproduce, thanks. I see two possible solutions:
This comment suggests to go for the latter. What is your opinion on this? |
Thanks @darrachequesne for checking and for the link to interesting reading too. I quite like also the latter comment, but don't have a strong opinion either. However, the second option seems right to me, at least having this definition here: Line 92 in 7467216
... and it should fix the conflict (the original issue). |
Fixed by 67a61e3, included in |
Describe the bug
There is fixed version of node types defined as socket.io dependency causing conflicts.
socket.io/package.json
Line 48 in 12221f2
To Reproduce
@types/node
as your dev dependency of your project (e.g.@types/node@12
)socket.io@3
as original dependency of your projectThe text was updated successfully, but these errors were encountered: