-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Description
If the staticwebapp.config.json file contains
"platform": {
"apiRuntime": "node:20"
},
The following error message will appear:
[swa] WARNING: Failed to read staticwebapp.config.json configuration from:
[swa] /YOURAPP/staticwebapp.config.json
[swa]
[swa] The following error was encountered: must be equal to one of the allowed values dotnet:3.1, dotnet:6.0, dotnet-isolated:6.0, dotnet-isolated:7.0, node:12, node:14, node:16, node:18, python:3.8, python:3.9, python:3.10
[swa] 0: {
[swa] 1: "platform": {
[swa] 2: "apiRuntime": "node:20"
[swa] 3: },
[swa]
[swa] Please fix the above error and try again to load and use the configuration.
[swa] Read more: https://aka.ms/swa/config-schema
Node 20 is the current release since march and will be LTS in 4 days, so swa should support it.
Update: Node 20 is now the LTS version of Node, 18 is only receiving security fixes and 16 is EOL.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels