I’d like to use the native version of fetch as one would with node.js version 18. Is this supported?
I’m running n8n with node.js 18 set via NODE_VERSION.
Also tried setting NODE_FUNCTION_ALLOW_BUILTIN=https,fetch
What is the error message (if any)?
“ReferenceError: fetch is not defined” when using the Code node.
Information on your n8n setup
n8n version: latest as of 3/13/23
Database you’re using (default: SQLite): sqlite
Running n8n with the execution process [own(default), main]: own
Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker