Open privatenumber opened 1 year ago
The export map specifies the types incorrectly: https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/package.json#L32-L98
types
You can verify that it's not working by setting compilerOptions.moduleResolution to Node16.
compilerOptions.moduleResolution
Node16
It should look closer to:
"exports": { "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }, "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" } },
Detailed explanation here: https://github.com/microsoft/TypeScript/issues/50067
The export map specifies the
types
incorrectly: https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/package.json#L32-L98You can verify that it's not working by setting
compilerOptions.moduleResolution
toNode16
.It should look closer to:
Detailed explanation here: https://github.com/microsoft/TypeScript/issues/50067