Skip to content

Unable to resolve ./foo.ts to ./foo.d.ts since 3.9.0 #429

Closed
@silverwind

Description

@silverwind

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions