Azure / Azure/static-web-apps-cli

SWA not starting for node16 is installed but app is Python

Open
#568 1 comment 0 reactions 1 assignee Claimed by @Reshmi-Sriram View on GitHub
command: start priority: high (P0) runtime: python scope: core status: work in progress type: bug
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

**Are you accessing the CLI from the default port `:4280` ?**

- [ ] No, I am using a different port number (`--port`) and accessing the CLI from that port
- [x] Yes, I am accessing the CLI from port `:4280`

> Make sure you are accessing the URL printed in the console when running `swa start`!

**ℹ️ NOTE: Make sure to enable debug logs when running any `swa` commands using `--verbose=silly`**

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

I get the following when trying to start the SWA on a Python functions project:

```console
$ swa start app --api-location api
Welcome to Azure Static Web Apps CLI (1.0.2)

***********************************************************************
* WARNING: This emulator may not match the cloud environment exactly. *
* Always deploy and test your app in Azure. *
***********************************************************************

✖ Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v18.0.0.
✖ See https://aka.ms/functions-node-versions for more information.
```

Yes, I have node.js 18 installed, but this is a Python project (and the functions CLI works fine)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.