Comments (15)
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
from static-web-apps-cli.
As a temporary workaround, I was able to edit the installed source on my workstation.
I found the file in this folder:
C:\Users\username\AppData\Roaming\npm\node_modules\@Azure\static-web-apps-cli\dist\core\func-core-tools.js
I edited the file to match the changes in the PR that @aaronpowell posted above: #786
Seems to be working for me.
from static-web-apps-cli.
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.
But as azure-functions-core-tools and the whole tooling already supports Node 20, it should definitely be supported by static-web-apps-cli and the Static Web Apps Azure Service.
Node 20 is the current LTS and Node 18 is already in maintenance since October and people started to migrate away from it.
from static-web-apps-cli.
I've been trying the same. I have node.js v20.11.0. I was hoping this was fixed by now.
Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v20.11.0.
from static-web-apps-cli.
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.
from static-web-apps-cli.
If you're using yarn you can hack using a newer version of @azure/msal-node
that is Node.js v20 compatible using a resolutions
entry in your package.json
:
"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.
✖ See https://aka.ms/functions-node-versions for more information.
from static-web-apps-cli.
There is a different issue when running with Node.js 20. The @azure/identity
dependency in turn depends upon "@azure/msal-node" "^1.17.3"
which triggers the following message on install:
error @azure/[email protected]: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "20.8.1"
error Found incompatible module.
from static-web-apps-cli.
There's some discussion on this PR around Node.js 20 support - linking in case it becomes useful.
from static-web-apps-cli.
Until Azure Functions support Node.js v20 isn't this a bit moot? They only just released v18 to public preview.
from static-web-apps-cli.
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?
from static-web-apps-cli.
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?
The reason that you get this error with .NET Functions is the CLI tool used to start Azure Functions (azure-functions-core-tools
) is a node package.
from static-web-apps-cli.
I've opened a PR, #786, which should fix this.
from static-web-apps-cli.
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.
from static-web-apps-cli.
I would like this fixed too. Did as @avalanchis suggested and it works fine.
from static-web-apps-cli.
Any updates on this?
from static-web-apps-cli.
Related Issues (20)
- Wrongly reported Node compatibility HOT 10
- Wildcard routes aren't supported properly in config HOT 2
- Outdated dependencies with moderate severity security issues (CVE-2023-45857) HOT 1
- Deploy purely static pages to SWA without creating a `public` subfolder HOT 2
- Unable to deploy SWA from Ubuntu ( `ubuntu-latest` on Azure Pipelines Hosted Agent)
- Deploying Blazor WASM to Azure Static Web App from Visual Studio
- Azure Static Web Apps Cli command failing on Linux
- Flaky CLI deployment HOT 3
- swa-cli.config.json "run" field <undefined>when "npm run vite:dev". Vite never runs
- SWA CLI and Visual Studio debugger does not connect in Visual Studio 17.8.6 HOT 2
- Dependency on json.schemastore.org breaks CLI HOT 21
- Pipelines fail due to https://json.schemastore.org/staticwebapp.config.json network timeout HOT 2
- Failed to load staticwebapp.config.json schema. Continuing without validation! HOT 3
- Old Data API builder version used HOT 3
- Custom SWA roles don't work in Data API builder HOT 1
- Deploy fails with no feedback, application is not deployed, stuck in "Uploading" forever HOT 4
- `swa [login|deploy]` fails with `Cannot spawn a message bus without a machine-id` in devcontainer
- Error message unclear when trying to deploy a Function with unsupported Node version
- No errors at deployment when using runtime v4 with managed functions
- Cannot deploy if app dist folder or function project is in project root
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-web-apps-cli.