opensearch-project / opensearch-js

Node.js Client for OpenSearch
https://opensearch.org/docs/latest/clients/javascript/
Apache License 2.0
186 stars 121 forks source link

[BUG] Cannot find module: Opensearch Error on node 18 #663

Open PaaPaul opened 10 months ago

PaaPaul commented 10 months ago

What is the bug?

I got a module not found error when using the package in lambda after upgrading node from 16 to 18

How can one reproduce the bug?

What is the expected behavior?

No errors or warning

What is your host/environment?

node v18

Do you have any screenshots?

Screenshot 2023-12-06 at 09 13 03

dblock commented 10 months ago

Want to try to add node 18 to CI?

nhtruong commented 10 months ago

@PaaPaul What does your index.mjs file look like?

PaaPaul commented 9 months ago

@PaaPaul What does your index.mjs file look like?

@nhtruong, do not have any file in my repo named that. This only pops up when node is at 18.