Tapas Adhikary I finally made it work. I had to add lambda.config.js file and reference to it in package.json scripts. You can check the details here https://github.com/netlify/netlify-lambda/issues/262
@michalhudecek
Nothing here yet.
Nothing here yet.
No blogs yet.
Tapas Adhikary I finally made it work. I had to add lambda.config.js file and reference to it in package.json scripts. You can check the details here https://github.com/netlify/netlify-lambda/issues/262
Tapas Adhikary I do use netlify dev. Yes, the functions are in /src/lambda and when I run netlify dev they are generated to /lambda folder. However, there are no sourcemaps in /lambda folder. I believe that is why I get the error about sourcemaps not found. When I add a break point to any function in /src/lambda it is not triggered, because the actual JS that is being run when I call any Netlify function is in /lambda folder. Where exactly are sourcemaps for lambda functions located in your project?
Tapas Adhikary Hi, neither of these things help. It looks like the sourcemap files for lambda functions are not generated at all. Where exactly do you have them? In /lambda folder with generated .js files?
Hi, thanks for a great article. I tried to follow it but can't make it work. After some investigation it looks like the sourcemaps for lambda functions are actually not generated at all and therefore the breakpoints do not work. I can't find sourcemaps in /lambda folder. Am I missing any pre-requisite? I am using netlify-cli/2.69.1 win32-x64 node-v14.15.1 Thanks