-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[import/order] 2.20.1 Windows only: Resolver cannot distinguish external and internal imports #1655
Comments
Happens to me when I upgraded to the latest version. Was not the case before. Moved from |
@constgen Thanks for your reply! After a bit of bisecting it appears that in this particular case, the bug only affects Windows on Here is the latest
|
@warnellw can you perhaps try on windows on latest master on this plugin? |
Running into this same issue on Windows, any timeline on when this fix will be released? |
hi First the PR is fixed but still not published on NPM. Is it possible to publish it to npm ? I don't understand how your trying to detect if a module is external withot knowing what is the path of the module we work on. in case we know it, a path.relative(from, to) is enough to know if we are in or out of our module. I can work on it but it will generate lot of changes |
Yes, it will be published to npm with the next release. That will happen when I have time to do it, and not before. For the other thing, can you file a new issue to discuss what you need and why? |
Sure I've create a PR here to fix all these problems #1696 Tell me if you can look at it |
The PR is fine, I'll take a look at it today. |
Hi there,
When using
import/order
in conjunction with theimport/no-unresolved
rule, it doesn't appear possible to configure a resolver to distinguish between external (i.e.node_modules
) and internal/absolute imports (i.e.src
). In every case, either the resolver groups the external and absolute imports together, or, the resolver is unable to resolve one of the groups.The following configuration is able to automatically add a newline between the external and absolute imports, but is unable to resolve the external imports:
In order to get the external imports to resolve, adding
node_modules
to themodule_directory
works, but then external and absolute internal imports are grouped together.I've tried additional configurations using the
webpack
resolver as well, but am running into the same problem. Any help would be greatly appreciated!The text was updated successfully, but these errors were encountered: