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
I'm currently utilizing some types from @opensearch-project/opensearch/lib/errors namely
ConnectionError,
NoLivingConnectionsError,
RequestAbortedError,
ResponseError,
Running the code via Docker results in not being able to find the module. This is on NestJS. Didnt' face this issue before until the node version upgrade.
How can one reproduce the bug?
Importing a type from @opensearch-project/opensearch/lib/errors in the mentioned node version
What is your host/environment?
@types/node: ^20.0.0 from ^16.0.0
node:alpine3.17
Dockerfile
Do you have any screenshots?
The text was updated successfully, but these errors were encountered:
Facing the same issue upgrading node (from v16 to v18).
I managed to get the import working as such:
// import { ResponseError } from '@opensearch-project/opensearch/lib/errors';import{errors}from'@opensearch-project/opensearch';// access the class via the `errors`errors.ResponseError
Facing the same issue upgrading node (from v16 to v18).
I managed to get the import working as such:
// import { ResponseError } from '@opensearch-project/opensearch/lib/errors';import{errors}from'@opensearch-project/opensearch';// access the class via the `errors`errors.ResponseError
Thanks for the update, I fixed it in the same way. I believe, for now, this should be the way to go. Closing the issue.
What is the bug?
I'm currently utilizing some types from @opensearch-project/opensearch/lib/errors namely
Running the code via Docker results in not being able to find the module. This is on NestJS. Didnt' face this issue before until the node version upgrade.
How can one reproduce the bug?
Importing a type from @opensearch-project/opensearch/lib/errors in the mentioned node version
What is your host/environment?
@types/node: ^20.0.0 from ^16.0.0
node:alpine3.17
Dockerfile
Do you have any screenshots?
The text was updated successfully, but these errors were encountered: