-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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";
~~~~~~~~~~
benquarmby
Metadata
Metadata
Assignees
Labels
No labels