-
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
Wrong import path on "relaxed" declaration file #25769
Comments
Duplicate of #25279, should be fixed at version 3. Or related to it. |
Hey @j-oliveras, thanks for the quick reply! I assume the cause is the same, and as I mentioned I know it was fixed in typescript@next, but the version the fix gets into has a meaningful impact. If this gets fixed by version 3 and vs code picks up version 3, all is good for the quick fixes. But even if version 3 gets released and vs code picks it up, it doesn't change the way I'm compiling my projects (which is still on the version 2 release line). So the main point of this issue is to know whether you intend to keep support for version 2 release line and if so, in my humble opinion, this should make it into a 2.9.3 kind of version. Thanks again for taking the time! |
Sorry, incorrect issue. Duplicate of #24599, that should be fixed at version 3 too. I think they will publish version 3 this week or next week, @mhegazy or @DanielRosenwasser can answer it. |
I believe this should be fixed in 3.0 should not have breaking changes vs 2.9. so you should be able to upgrade from 2.9 to 3.0.
|
This isn't fixed for me in 3.1.0-dev.20180717, https://unpkg.com/@heydovetail/[email protected]/lib.es2015/compose.d.ts shows Update: For now I've written a script that I run after tsc to fix all the imports. |
Do you have |
I have |
Do you need the |
Nope—removing it fixes the imports. Excellent! I think the reason I had it was that I usually copy a tsconfig from an existing project when starting a new project. And in this case I'd copied a config used by an app (something built with webpack where I don't build declarations) for use in a library (where I do build declarations). Thanks for the help, much appreciated! |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.9.2
Search Terms:
wrong import declaration file
import relative to root
Code
A link to a repo for reproduction
Expected behavior:
Declaration file for index.d.ts should be
Actual behavior:
Declaration file for index.d.ts is
Related Issues:
N/A
So I encountered this issue with [email protected]. I did a few checks with different versions. using typescript@next or [email protected], this works fine. I don't know what your strategy for supporting version 2 of TypeScript, but since the next version of TypeScript is a major release, I would rather not upgrade to it until I feel it has stabilized and there are not breaking changes that affect my projects. Will you consider fixing this in 2.9 release line of TypeScript? It would be greatly appreciated.
The text was updated successfully, but these errors were encountered: