Closed
Description
I’ve been using netlify-lambda and it throws an error whenever I use “serve”.
Nicholas@Patriot MINGW64 ~
$ node -v
v8.10.0
Nicholas@Patriot MINGW64 ~
$ npm -v
5.6.0
The full error is:
ERROR in ./subscribe.js
Module build failed: Error: Cannot find module '@babel/core'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\Nicholas\projects\personal\emails.humanwhocodes.com\node_modules\babel-loader\lib\transform.js:1:75)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\Nicholas\projects\personal\emails.humanwhocodes.com\node_modules\babel-loader\lib\cache.js:24:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
This happens right at startup when testing locally and no functions will work. The function in this example simply prints out “OK”.
Is there something missing in the package for netlify-lambda?
Metadata
Metadata
Assignees
Labels
No labels