You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Went through the course on Frontend Masters and wanted to note that when you create a Lambda Function in Console the default Node.js version is 22.x (or a version higher than 20). Using the provided header recipe causes a 503 because The Lambda runtime is Node.js 14.x or later with ES Modules enabled, but the code uses CommonJS syntax. Rewriting/updating the function to use ES module syntax or the below code fixes the issue.
Went through the course on Frontend Masters and wanted to note that when you create a Lambda Function in Console the default Node.js version is 22.x (or a version higher than 20). Using the provided header recipe causes a
503
because The Lambda runtime is Node.js 14.x or later with ES Modules enabled, but the code uses CommonJS syntax. Rewriting/updating the function to use ES module syntax or the below code fixes the issue.The text was updated successfully, but these errors were encountered: