-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support leading slashes in paths
#86
Comments
tsconfig-paths is used under the hood. See also dividab/tsconfig-paths#128 |
Thanks @JounQin for the prompt reply! and the link. As this is a tsconfig-paths issue I'm going to close this. Thanks |
Or I'm opening for tracking the tsconfig-paths issue, so once it is resolved, |
@qmg-akara You can try to use patch-package and patch tsconfig-paths by editing lib/try-path.js like https://github.com/dividab/tsconfig-paths/pull/180/files temporarily. |
Thanks @JounQin for letting me know that! I think we'll just disable |
Hi @JounQin , looks like tsconfig-paths issue is resolved, would it be possible to update this package too? Thanks |
We use |
Looks like there is no an official way of upgrading indirect dependencies, I have created a PR here |
You can delete it from |
Hello, thanks for this great work!
We have some special aliases that starts with a leading slash, such as
/opt/nodejs/lambda-layer
andtsc
successfully compiles this code however we are gettingimport/no-unresolved
error for these aliases. When we remove the leading slash, i.e.opt/nodejs/lambda-layer
, it works fine.tsconfig.eslint.json
:error:
Unable to resolve path to module '/opt/nodejs/lambda-layer' import/no-unresolved
tsc --build
builds the code successfully so I wonder if this is a bug ineslint-import-resolver-typescript
or am I missing something? ThanksThe text was updated successfully, but these errors were encountered: