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
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";
~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Thanks for raising this. I just observed the same error, but with @wry/caches as a transitive dependency of @apollo/client. I'm still a bit confused because normally this error would only affect the package being built, not its dependencies. For reference, the TypeScript version being used here is 5.7.3.
Trying to use
@wry/caches
in a package withmoduleResolution
set tonode16
(ornodenext
) fails with the errors:The text was updated successfully, but these errors were encountered: