-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
Hi,
I forked a repo at https://github.com/bestpricedin/create-react-app-lambda, changed babel-loader
version as "babel-loader": "8.0.5"
, using yarn.
I am using netlify-cli
to run this locally and it works.
When I deploy to netlify, I get following error. Can you please help me solve the error?
My netlify -v
is netlify-cli/2.11.14 darwin-x64 node-v8.15.0
12:55:51 PM: Starting to prepare functions from 'build'
12:55:51 PM: Zipping functions from /opt/build/repo/built-lambda to /tmp/zisi-889841717
12:55:52 PM: Error: Could not find "encoding" module in file: /repo/built-lambda/async-dadjoke.js.
Please ensure "encoding" is installed in the project.
12:55:52 PM: Failing build: Failed to prepare functions for deployment
12:55:52 PM: failed during stage 'preparing functions for deployment': exit status 1
12:55:52 PM: Finished processing build request in 54.037857466s
12:55:52 PM: Shutting down logging, 0 messages pending
Metadata
Metadata
Assignees
Labels
No labels