Skip to content

Docker - Error: Cannot find module './assets' #252

@OmerShamay

Description

@OmerShamay

***Edit
Seems like the next commands were the root, can that be fixed?
RUN npm prune --production
RUN node-prune

Running an app on node:20-alpine container.
The error occurs while running my app, not using anything from assets.
Tried many versions, from the newest 3.1.1 to older versions.

Stack trace:
Error: Cannot find module './assets'
Require stack:

  • /home/equally/node_modules/webflow-api/api/resources/index.js
  • /home/equally/node_modules/webflow-api/api/index.js
  • /home/equally/node_modules/webflow-api/index.js

screenshot from running container:
Image

locally, everything seems to work as expected:

Image

Please advise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions