-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can't import types #207
Comments
You can push this forward by forking and try to create a bugfix PR |
@Shinigami92 happy to take a look tomorrow evening once I'm back from in-laws 😅 |
I now had the first time after vacation to test your issue and somehow I cannot reproduce your problem 🤔 |
@Shinigami92 what TS version were you testing this on? Tried playing with it (both changing TS version, my configuration and your package.json) and can't figure out what's wrong with it... |
https://www.typescriptlang.org/docs/handbook/esm-node.html#type-in-packagejson-and-new-extensions It started working correctly for me when I changed your .d.ts files to contain extensions. I think that's the issue here. But still interested of your setup, since you're saying it works for you as is? |
I have just a normal TypeScript esm project I'm sorry I have not the time to debug your problems if you cannot provide a minimal reproducible Also it starts to sound like it's a problem with your tsconfig or whatever So I think I will close this issue for now |
FFR the issue is that my project was set to have module resolution "Node16" while |
After #204 was merged and released in 1.21.0, I can't do any type imports, i.e:
Works correctly for 1.20.0
The text was updated successfully, but these errors were encountered: