Comments (3)
@mrispoli24 Thank you so much for this! I was pulling my hair out for a couple of hours!!
from netlify-faunadb-example.
@mrispoli24 Another grateful dev here, thank you for documenting this! Problem solved.
In my case it was the same issue with formidable
, but from auth0
rather than faunadb
.
I had been successfully using Netlify Dev to serve some self-contained functions locally (with no build steps) and had just set up netlify-lambda
so that I could build them from TypeScript source files instead. On building, I got the following warning:
WARNING in ../node_modules/formidable/lib/incoming_form.js 1:43-50
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ../node_modules/formidable/lib/index.js
@ ../node_modules/superagent/lib/node/index.js
@ ../node_modules/rest-facade/src/Client.js
@ ../node_modules/rest-facade/src/index.js
@ ../node_modules/auth0/src/auth/index.js
@ ../node_modules/auth0/src/index.js
@ ./image-signature.ts
Using the application resulted in the same error TypeError: n is not a function
as reported by others on netlify/netlify-lambda#64.
from netlify-faunadb-example.
superagent need to upgrade formidable
Please check out below
ladjs/superagent#1609
node-formidable/formidable#337
from netlify-faunadb-example.
Related Issues (17)
- Solution for missing 'https' module / 500 response error
- Puzzling out UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'statusCode' of undefined HOT 3
- Stuck waiting for localhost:34567... HOT 1
- Works without setting faunadb key? HOT 2
- Follow AWS Lambda best practices HOT 2
- [Update] FaunaDB Add-on for Netlify
- functions build fail, need update the package.json HOT 2
- Add in due dates to todos and wire up Functions to notify users via email/SMS
- ◈ Empty args assigned, this is an internal Netlify Dev bug, please report your settings and scripts so we can improve HOT 7
- Error: Cannot find module 'faunadb' HOT 15
- Error After Following README Instructions HOT 1
- Deployed App url???
- Environment variables are potentially vulnerable to a malicious deploy preview HOT 3
- Confused re tutorial HOT 5
- I needed to set FAUNADB_SERVER_SECRET as well as FAUNADB_SECRET for the app to work HOT 2
- UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'statusCode' of undefined HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netlify-faunadb-example.