-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Typescript NodeNext path alias with extension #191
Comments
I forgot to add that Typescript correctly resolves to the file, so this isn't an issue with the alias specification. |
If you still have any issue, please provide a runnable reproduction. |
@JounQin Pretty simple case: https://github.com/WoodyWoodsta/repro-eslint-import-resolver-typescript-191 |
@JounQin Did you manage to have a look at the reproduction above? I'm experiencing the same issue on v3.6.1. It also seems related to #234. |
Sorry, I've totally forgotten about this issue, I'll take a look when I'm free at this weekend, or you can help to debug first. |
The fix is easy: {
"paths": {
"alias": ["path/to/specific/file.mts"]
}
} |
@EdisonSu768 Maybe we can support auto mapping which is the behavior of TypeScript itself. See
Use |
I have a typescript project with
moduleResolution: 'NodeNext'
. In mytsconfig.json
, I have set up an alias which points directly to a file. In the ES spec, this would be with the file extension, and thus should be in the alias target:tsconfig.json
Eslint complains, if I try:
with "Unable to resolve path to module 'alias'".
Am I configuring this incorrectly, or is this not yet supported?
The text was updated successfully, but these errors were encountered: