Skip to content

@wry/caches is not compatible with moduleResolution = node16 #646

@simon-abbott

Description

@simon-abbott

Trying to use @wry/caches in a package with moduleResolution set to node16 (or nodenext) fails with the errors:

node_modules/@wry/caches/lib/strong.d.ts:1:34 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './common.js'?

1 import type { CommonCache } from "./common";
                                   ~~~~~~~~~~

node_modules/@wry/caches/lib/weak.d.ts:1:34 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './common.js'?

1 import type { CommonCache } from "./common";
                                   ~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions