If you’re using optional chaining in Netlify Functions, the runtime is not the same as what you specify in Node build settings. You need to specify AWS Runtime like mentioned here: Build functions | Netlify Docs
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Error with netlify-lambda when upgrading it from 1.6.3 to 2.0.x but only when running within a Netlify deploy | 2 | 470 | March 30, 2021 | |
Changes to the default Node.js version for Netlify Functions | 0 | 1203 | May 2, 2023 | |
Functions: Node 14 will be the new default runtime | 0 | 1706 | December 10, 2021 | |
Build problem with node version | 2 | 238 | February 18, 2025 | |
Major version update for netlify-lambda coming Wednesday, July 15th | 0 | 788 | July 14, 2020 |