When using ESM instead of CommonJS modules, TypeScript will look for an index.d.ts file in /esm/index.d.ts by default.
As this file does not exist, TS gives an error for missing declarations.
A possible is overriding the declaration path in tsconfig.json which could look like this
When using ESM instead of CommonJS modules, TypeScript will look for an
index.d.ts
file in/esm/index.d.ts
by default. As this file does not exist, TS gives an error for missing declarations.A possible is overriding the declaration path in
tsconfig.json
which could look like this