Skip to content

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

@pedrohff360

Description

@pedrohff360

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions