functions-framework-nodejs icon indicating copy to clipboard operation
functions-framework-nodejs copied to clipboard

Cannot find module date-fns

Open raDiesle opened this issue 5 months ago • 0 comments

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 ?

raDiesle avatar Sep 03 '24 11:09 raDiesle