I’ve got it working, partially
Came across that discussion last night while I was digging for information about it, Thanks for the link.
"build:lambda": "netlify-lambda -c ./webpack.functions.js build ./src/functions" which builds the functions. The problem appears to be present because some modules were created without the intention to be bundled.
However, when I run the
netlify dev command in my terminal,
netlify-lambda is not being detected and the functions are not being built when I run that command.
So I have to perform this build step manually.
When I replace
"build:lambda": "netlify-lambda -c ./webpack.functions.js build ./src/functions" with
"build:lambda": "netlify-lambda build ./src/functions" in my package.json script
netlify dev detects the build tool. And the error is back.
How can I use
netlify dev with the custom
./webpack.functions.js file using
netlify-lambda -c and make it hot reload when I change files in