Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

WEBSITE_NODE_DEFAULT_VERSION not working in Linux

Open
#283 25 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, linux, node.js, typescript
Domain
backend, cloud

Research direction

The reported entry point is the HttpTrigger, which logs process.version via context.log. Reproduce the Linux Function App Runtime Version 2.0.12969.0 setup with WEBSITE_NODE_DEFAULT_VERSION set to ~10, then trace how the Node.js runtime is selected. Done means the function reports v10.xx.xx and accepts the shown for-await code.

Written by the indexing model from the issue text.

Description

App Service area:nodejs-functions docs enhancement P1

My WEBSITE_NODE_DEFAULT_VERSION is ~10, but if I check the actual Node version (context.log(process.version);) it prints v8.17.0. Is there another setting that affects the Node.js version?

I was pointed at that, when my app crashed with error message

Worker was unable to load function status: 'SyntaxError: Unexpected reserved word'
Stack: /home/site/wwwroot/common/xxx.js:195
  for await (const c of blobServiceClient.listContainers()) {
      ^^^^^

Which seems to be Node.js version related (for await supported after v10.0.0).

Investigative information

Please provide the following:

  • Timestamp: 2020-01-30 16:52:14.006
  • Function App name: dummyfunapp
  • Function name(s) (as appropriate): HttpTrigger
  • Invocation ID: e8f7c2eb-4c0d-4a5e-81e6-cdda996f5768
  • Region: West Europe
Repro steps
  1. Create Function App Runtime Version 2
  2. Create Function that does context.log(process.version);
  3. Run Function from Portal
Expected behavior

Output: v10.xx.xx

Actual behavior

Output: v8.17.0

Related information
  • I'm developing locally (VS Code) and publish function app via VS Code Tool
  • Function App OS: Linux
  • Runtime Version: 2.0.12969.0
Dominant language
TypeScript
Stars
110
Forks
52
Avg merge
7h 33m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-functions-nodejs-worker

All issues in Azure/azure-functions-nodejs-worker

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.