Open cfab opened 2 years ago
Oh, I haven't seen this: https://www.netlify.com/blog/2021/04/02/modern-faster-netlify-functions/ so I dit it but now I got the following error:
Request from ::1: GET /.netlify/functions/movies2
Error: Error: Error: TypeError: fetch_default is not a function
at AsyncAirtable.<anonymous> (/Users/f/Sites/sister/node_modules/asyncairtable/src/asyncAirtable.ts:157:13)
at Generator.throw (<anonymous>)
at rejected (/Users/f/Sites/sister/.netlify/functions-serve/movies2/src/functions/movies2/movies2.js:3388:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Hey there, I haven't tried running this in a Netlify function yet.
Let me see if I can find why that might be happening. I may come back here with some questions, so be on the lookout!
Thank you ! anything new ? or is it just me ?
Le 18 nov. 2021 à 03:09, Graham Vasquez @.***> a écrit :
Hey there, I haven't tried running this in a Netlify function yet.
Let me see if I can find why that might be happening. I may come back here with some questions, so be on the lookout!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GV14982/async-airtable/issues/82#issuecomment-972435477, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALGLKDYTTDERDP5EIRV34TDUMRN4ZANCNFSM5ICG642Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
An example of a netlify function using your library would be welcome. Not sure why but I always end up with an error saying that "SyntaxError: Cannot use import statement outside a module" And this happens wether I use the require or import syntax... Here is an example code: