-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conflict between several @types package #9771
Comments
@andy-ms can you take a look? We shouldn't be in this state for unversioned installs (note the installation of |
These two packages work for me when installed from scratch in either order. Could you please provide your
|
I'm indeed still using it npm 2 (2.14.4) |
I ran into this as well last week with npm 3 on Windows. I installed @types for jQuery and SignalR and this resulted in types for jQuery in Once I figured that out, I tried to update the packages and saw that the SignalR types had been updated on npm two hours earlier (but after I had installed them). It would be great if these types of dependencies on npm could be updated atomically, but I doubt that's possible. The most annoying part was that running tsc on the command line or through |
Here is a related problem and description:
File my-module.ts:
Files jquery-1.10.d.ts and jquery-2.0.d.ts are files with the same content, just for testing, but it can be slightly different for different version of the jQuery, and theirs content is latest version of the jquery.d.ts from the DefinitelyTyped (https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/jquery/jquery.d.ts):
Now try to compile the main.ts with:
Expected result: no errors Actual result:
I.e. you see batch of errors. It seems like tsc does not allow use different version of the .d.ts files with the same declarations for the included module/file. However I think it should not produce errors because the included module can use different version of the same library as shown above with file names - jquery-1.10.d.ts and jquery-2.0.d.ts. tsc version:
|
The original issue has been fixed, but there are new issues, i have a fix queued up in DefinitelyTyped/DefinitelyTyped#10663 |
should be fixed in |
TypeScript Version: 2.0.0
Details
I started a new project to try TS 2.0 and the
npm install @types/
way of getting typings and ran into a conflict issue.React-router definition depends on
@types/react
.Expected behavior:
Everything working fine
Actual behavior:
The text was updated successfully, but these errors were encountered: