Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PaaPaul opened this issue Dec 6, 2023 · 3 comments
Open

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

PaaPaul opened this issue Dec 6, 2023 · 3 comments
Labels
🐛 bug Something isn't working

Comments

@PaaPaul
Copy link

PaaPaul commented Dec 6, 2023

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?

  • Install package
  • Use lambda Runtime: nodejs18.x
  • Run Lambda function

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
Copy link
Member

dblock commented Dec 6, 2023

Want to try to add node 18 to CI?

@dblock dblock added 🐛 bug Something isn't working and removed untriaged labels Dec 6, 2023
@nhtruong
Copy link
Collaborator

nhtruong commented Dec 7, 2023

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

@PaaPaul
Copy link
Author

PaaPaul commented Dec 11, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants