This was created to solve an isuue first noticed in a package that uses Typescript. The issue was that Typescript failed to import *.d.ts
files without explicitly including the extension.
I have only seen this error in TypeScript 4.5.0-beta
, when "module": "node12"
.
This issue has been resovlved by adding the following key to compilerOptions
in tsconfig.json
:
"moduleResolution": "node"
This parameter changes how Typescript resolves module names. See here for more.
yarn i && build