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
The type declarations do not work when using ESM. I am getting the following error
Could not find a declaration file for module '@opensearch-project/opensearch'. '/Users/samgoodwin/workspaces/eventual-live/node_modules/.pnpm/@opensearch-project+opensearch@1.2.0/node_modules/@opensearch-project/opensearch/index.mjs' implicitly has an 'any' type.
There are types at '/Users/samgoodwin/workspaces/eventual-live/packages/@eventual/core/node_modules/@opensearch-project/opensearch/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@opensearch-project/opensearch' library may need to update its package.json or typings.ts(7016)
Looks like there is a bug with the exports configuration for ESM support. This is the most important part:
There are types at /(my-workspace)/packages/@eventual/core/node_modules/@opensearch-project/opensearch/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@opensearch-project/opensearch library may need to update its package.json or typings.
How can one reproduce the bug?
Consume this package from a typescript project with the following tsconfig settings:
What is the bug?
The type declarations do not work when using ESM. I am getting the following error
Looks like there is a bug with the
exports
configuration for ESM support. This is the most important part:How can one reproduce the bug?
Consume this package from a typescript project with the following tsconfig settings:
What is the expected behavior?
There should be no error when importing this package in a TypeScript project using ESM.
What is your host/environment?
macOS 13.1 (22C65)
The text was updated successfully, but these errors were encountered: