-
-
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
Unable to resolve path to module with aliases. #359
Comments
Here
dot: true
|
Does this means |
I don't know but I've seen the dot option also in version 0.2.10 if I'm not allucinated. |
hi! tinyglobby author here. that's very odd. tinyglobby (in both 0.2.10 and 0.2.11) is configured by default to avoid dot directories, behavior shouldn't have changed between versions. so either 0.2.10 mistakenly didn't skip directories which should have been skipped or 0.2.11 somehow made dot matching (with the dot option disabled) stricter. if any of you can provide a reproducible example of results changing between the two versions i can take a closer look |
There are three new tests that look for dot directories. |
As a workaround I downgraded to eslint-import-resolver-typescript 3.7.0
The latest version that supports aliases (for me) is eslint-import-resolver-typescript 3.7.0 (which was still using fast-glob), downgrading eslint-import-resolver-typescript from 3.8.2 to 3.8.0 was not enough
I downgraded my tinyglobby from 0.2.11 to v0.2.10 and it made no difference (both break aliases when not using the dot option) |
great will check it out. meanwhile if you can manage to provide a minimal isolated example that only involves one glob call it'd be greatly appreciated 🙏 |
@carlocorradini while the tests do fail with 0.2.11, i added a few asserts and installing 0.2.10 at the same time to make sure the result didn't change between versions, but i can't seem to find any assert failure |
ah, so both versions have the issue. didn't realize. actually that makes my above findings have a lot more sense. i'm glad it's not a 0.2.11 regression at least? although it's really odd that this kind of test failure had gone unnoticed for so many months. if any of you can find a specific minimal repro where tinyglobby returns different results than fast-glob (as tinyglobby is meant to be a replacement to it) i can try making it consistent with fast-glob |
The issue has been fixed in my project. Thanks again! :) |
Hello, I noticed a regression from 3.7.0 to 3.8.2. 3.7.0
However when I'm upgrading to 3.8.2
I haven't changed my config, but it doesn't seem to resolve the aliased paths. Here's (part of) my eslint config
Is there something I can do to fix it ? I temporarily downgraded |
@befabry Retry with version 3.8.3. |
Starting from
tinyglobby@^0.2.11
,eslint-import-resolver-typescript
is unable to resolve module paths when using aliases. As a workaround, I had to overridetinyglobby
to version0.2.10
to restore functionality.This issue can be reproduced in my pull request DTS-STN/future-sir#226 with commit DTS-STN/future-sir@e1da254, where the problem occurs. The next commit DTS-STN/future-sir@f0e3ce2 includes the override, which resolves the issue.
The text was updated successfully, but these errors were encountered: