-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
multiple resolvers don't always work #1350
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
I don't think those 2 resolvers are compatible with each other. |
I realize this is an old thread, but I came across a similar issue where I would ideally want both of these resolvers. I need the webpack resolver so that it can resolve the There currently seems to be no way to have both of these functionalities using just one of these resolvers. |
@smtchahal my personal opinion is that the proper way to solve this is to use babel for all transpiling (it does a much better job than tsc), and to handle aliases using a babel transform. Short of that, I think you'd need a webpack config that did nothing but resolve the aliases, and then fell back to the TS resolver - or, you'd need to also define the aliases in tsconfig. |
I believe this can be closed for a long time because import-js/eslint-import-resolver-typescript#18 has already been merged. |
Need to isolate a repro but in my day job codebase the following works:
and this doesn't (always), but should (always):
technically blocked by import-js/eslint-import-resolver-typescript#18 for
typescript
resolver specifically but there is something else going on that makeswork, but
doesn't always. not sure what the difference is but in some files I get "Resolver error" with the above.
The text was updated successfully, but these errors were encountered: