contentful-export icon indicating copy to clipboard operation
contentful-export copied to clipboard

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

Open pedrohff360 opened this issue 2 years ago • 0 comments

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: https://github.com/dchester/jsonpath/issues/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 avatar Apr 15 '24 15:04 pedrohff360