You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/silverwind/resolver-bug && cd resolver-bug
npm i [email protected]
npx eslint index.js # fails with "error foo not found in 'mod' import-x/named"
npm i [email protected]
npx eslint index.js # works without error
The problem is that dist/index.d.ts refers a non-existant dist/foo.ts. dist/foo.d.ts exists and it seems 3.8.7 and earlier used it.
If possible I'd request for that behaviour to be restored because I can't seem to get my d.ts generation to fix this without having to do (expensive) type definition bundling.
The text was updated successfully, but these errors were encountered:
Specifically, I think typescript's File extension substitution may be at least partially be absent in unrs-resolver, but probably was present in enhanced-resolve.
I've dug deeper into un-ts/eslint-plugin-import-x#265 and have found the actual cause which is from this module and/or
oxc-resolver
/unrs-resolver
.Last good version: 3.8.7
First bad version: 3.9.0
Reproduction:
The problem is that
dist/index.d.ts
refers a non-existantdist/foo.ts
.dist/foo.d.ts
exists and it seems 3.8.7 and earlier used it.If possible I'd request for that behaviour to be restored because I can't seem to get my
d.ts
generation to fix this without having to do (expensive) type definition bundling.The text was updated successfully, but these errors were encountered: