-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
oxc-resolver has been a breaking change #242
Comments
Can you provide a runnable reproduction? |
oxc-project/oxc-resolver#53 looks like pnp support is not yet enabled in oxc-resolver? edit; or possibly not. will try and make a minimal repro |
web-infra-dev/rspack-resolver#53 could be replacement, I'll publish into npm manually for now. |
https://github.com/mrginglymus/epix-oxc trivial repro - works fine with node-modules, explodes with pnp I suspect the css import issue might be fixable with config. |
@mrginglymus Could you help to test #243? # yarn 1
yarn add https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/d794a858/eslint-plugin-import-x
# yarn 2, 3
yarn add eslint-plugin-import-x@https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/d794a858/eslint-plugin-import-x/_pkg.tgz
# npm
npm i https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/d794a858/eslint-plugin-import-x |
This works a lot better! It's now able to resolve all modules. I am, however, still hitting two issues:
|
For 1. I can fix with config using an extension alias:
though that then does result in import-x claiming 'duplicate' imports where there are none. |
I've updated the repro using #243 and added a |
@mrginglymus Can you add this into the reproduction? For # yarn 1
yarn add https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/c115e722/eslint-plugin-import-x
# yarn 2, 3
yarn add eslint-plugin-import-x@https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/c115e722/eslint-plugin-import-x/_pkg.tgz
# npm
npm i https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/c115e722/eslint-plugin-import-x |
@JounQin updated, thanks! pnpapi working, added repro for querystring import |
I tried original {
"exports": {
".": "./index.js",
"./add": "./add.js?custom"
}
} I'll try to fix it at our own fork temporarily. |
# yarn 1
yarn add https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/27012bc4/eslint-plugin-import-x
# yarn 2, 3
yarn add eslint-plugin-import-x@https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/27012bc4/eslint-plugin-import-x/_pkg.tgz
# npm
npm i https://pkg.csb.dev/un-ts/eslint-plugin-import-x/commit/27012bc4/eslint-plugin-import-x @mrginglymus Working as expected now. ![]() |
Amazing! Yes, works for me. The only remaining difference is that now Thanks so much for the quick turnaround on this. |
@mrginglymus In my PR https://github.com/un-ts/eslint-plugin-import-x/pull/243/files#diff-ad71c478de212fc2376c95a6ef7a5b2b24f2e2791c15b1d1c362d6342e4d0ae4R54, I marked |
Should we mark @mrginglymus @SukkaW What do you think? |
@JounQin I've updated to the latest version and I'm getting intermittent linting failures of this plugin, which is a new one to me! It seems to be a |
I've just tried to update to latest version of the plugin. oxc-resolver appears incompatible with yarn PnP (at least out of the box).
Switching to the
node-modules
linker at least allows it to resolve packages, but it then seems to have some trouble importing.css
files which previously worked without additional config.The text was updated successfully, but these errors were encountered: