Skip to content

Cannot find module date-fns #629

@raDiesle

Description

@raDiesle

Using "firebase-functions": "^5.0.1" it works on local machine, but not on remote, using npm-shrinkwrap.json mechanism

DEFAULT 2024-09-03T10:20:33.517498Z Provided module can't be loaded.
DEFAULT 2024-09-03T10:20:33.517537Z Did you list all required modules in the package.json dependencies?
DEFAULT 2024-09-03T10:20:33.517564Z Detailed stack trace: Error: Cannot find module 'date-fns'
DEFAULT 2024-09-03T10:20:33.517569Z Require stack:
DEFAULT 2024-09-03T10:20:33.517573Z - /workspace/index.js
DEFAULT 2024-09-03T10:20:33.517578Z - /workspace/node_modules/@google-cloud/functions-framework/build/src/loader.js

Is it expected to separately install date-fns in my dependencies ?

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