-
-
Notifications
You must be signed in to change notification settings - Fork 69
import/no-unresolved when trying to import types from @types/* #17
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
Comments
Ah, sweet, you beat me to this. was going to open a similar issue and link to import-js/eslint-plugin-import#1341 (comment) FWIW I'd call this an enhancement request and not a bug. But I am relatively new to the TS ecosystem so maybe there's an argument for calling this a bug. Either way, I think it'd be straightforward to try a resolution against |
For anything maybe interested, you can try |
This worked for me. Thanks |
@femmor This should be unnecessary, that plugin has been merged into this upstream project already. |
I'm trying to use eslint with
@typescript-eslint/parser
andeslint-plugin-import
but no matter what I do, I get an error:whenever I try to import types from
@types
packages.Looks like the
sourceType: 'module'
parserOption is causing this error but when I remove it I get another error:I created a minimal example to reproduce this error. Probably it's just a setting that's wrong but I have tried different settings, plugins, parserOptions and what not and I just don't get it working:
https://github.com/manuelbieh/eslint-typescript-import-bug
So I'm not sure if the problem is on my side or if it is a bug in this package.
The text was updated successfully, but these errors were encountered: