cli icon indicating copy to clipboard operation
cli copied to clipboard

Local Functions Not Working with Node 17+

Open jamesqquick opened this issue 3 years ago • 1 comments

Describe the bug

When running netlify dev, local functions are not accessible on port 8888 when using Node.js version 17.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new hello world function inside of a functions directory
  2. Install Node.js 17+
  3. Run netlify dev in the project and try to access in the browser at http://localhost:8888/.netlify/functions/helloWorld

Expected behavior

Should return back hello world from the browser.

jamesqquick avatar Jan 19 '22 14:01 jamesqquick

Check out #3617. The issue has been reported for different frameworks. Had the same issue after updating to Node.js 17+. Going back to an older version of Node solved the issue for now.

wad-im avatar Feb 26 '22 09:02 wad-im