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

Jsonpath dependency contains dynamic importing that (probably) is causing issues on my serverless environment (aws) #1747

Open
pedrohff360 opened this issue Apr 15, 2024 · 0 comments

Comments

@pedrohff360
Copy link

pedrohff360 commented Apr 15, 2024

I had a problem last week while trying to use the contentful-export package: I deployed my lambda function (using sls deploy command from AWS) and noticed some warnings (image below), but the deployment process finished correctly.

error-contentful-export

After running the deploy, I received the following error when executing the lambda function:

Runtime.ImportModuleError: Error: Cannot find module '../include/module.js'

The complete log:

Screenshot from 2024-04-15 12-46-07

I'm not sure if the warnings are related to the difficulty trying to use this package, but looks like it's. Also, I found this issue from the jsonpath package: dchester/jsonpath#168; which seems to be a dependency used by this package, right?

Do you have some idea what could be causing that? There is some setting that I could apply to make it work (e.g. something related to webpack)?

  • my node version: 18;
  • contentful-export package version: 7.19.144 (I also tested with an old version, which supported node v16 as the minimum version, but received the same result);

Thank you in advance!

@pedrohff360 pedrohff360 changed the title Jsonpath dependency contains dynamic importing that is causing issues in serverless environment Jsonpath dependency contains dynamic importing that (probably) is causing issues in serverless environment Apr 15, 2024
@pedrohff360 pedrohff360 changed the title Jsonpath dependency contains dynamic importing that (probably) is causing issues in serverless environment Jsonpath dependency contains dynamic importing that (probably) is causing issues on my serverless environment (aws) Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant