-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 20 support #756
Comments
There is a different issue when running with Node.js 20. The
|
If you're using yarn you can hack using a newer version of "resolutions": {
"**/@azure/msal-node": "2.3.0"
}, However it looks like Node.js 20 isn't generally supported anyway ✖ Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v20.8.1. |
There's some discussion on this PR around Node.js 20 support - linking in case it becomes useful. |
Until Azure Functions support Node.js v20 isn't this a bit moot? They only just released v18 to public preview. |
They released the public preview of Node 20 support on September 27th and they stated themselves that it is later than they wished, but the GA process is a little bit tedious and they plan to release into GA the latest March 2024. |
For those of us that use .NET as our functions backend I'm not sure why we even get this error? Is there a way to disable this check? |
Updating the supported node versions to match the [current list](https://learn.microsoft.com/en-gb/azure/azure-functions/functions-reference-node?tabs=javascript%2Cwindows%2Cazure-cli&pivots=nodejs-model-v4#supported-versions), including previews.
The reason that you get this error with .NET Functions is the CLI tool used to start Azure Functions ( |
I've opened a PR, #786, which should fix this. |
Do you have any updates on node 20 for the CLI or the runtime @aaronpowell ? All our projects are using the current LTS version or Node, which is 20 and SWA is the only tooling that still doesn't support it. |
The PR is up for review by the team, that's the extent of what I know |
I've been trying the same. I have node.js v20.11.0. I was hoping this was fixed by now. |
Any update on this yet? Azure Functions have now been updated to support Node.js v20, but swa still doesn't allow them to work together. |
As a temporary workaround, I was able to edit the installed source on my workstation. I found the file in this folder: I edited the file to match the changes in the PR that @aaronpowell posted above: #786 Seems to be working for me. |
I would like this fixed too. Did as @avalanchis suggested and it works fine. |
Any updates on this? |
Still waiting on this. |
The PR works fine and can be applied with patch-package. Not ideal but it's an ok work around. |
We've recently released v1.1.10 with Node 20 support. Let us know if this doesn't fix your issue. |
@adrianhall This fails for me in Node 20:
|
Hi @tony19 - I also noticed this, caused by @azure/identity v3.x - I've upgraded the @azure/identity to v4.3.0 and that will be released in the next service release (which will actually be v2.0.0 because of a number of underlying breaking changes, most notably - dropping support for node < v18) |
If the staticwebapp.config.json file contains
The following error message will appear:
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.
The text was updated successfully, but these errors were encountered: