Azure / Azure/static-web-apps-cli

Version incompatibility for Azure Functions Core Tools blocks execution of `swa start`

Đang mở
#970 7 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
668
Fork
156
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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`

**Describe the bug**
Working in ubuntu on the latest version of node and the swa cli, adding managed apis causes the cli to no longer work in terms of starting the app because of a version incompatability being registered between node and the azure functions core tools.

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

**To Reproduce**
Steps to reproduce the behavior:

1. Install node
```
> node --version
v24.5.0
```
2. Install swa
```
> swa --version
2.0.6
```
3. In an swa project, create a dotnet8 isolated function runtime (could work with others but this is what I used)
4. Make sure to add your ap directory to your swa cli config
5. Run `swa start` triggering core tools grab and then error due to version incompatability```
>swa start
✖ Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v24.5.0.
✖ See https://aka.ms/functions-node-versions for more information.
```

**Expected behavior**
`swa start` should work OR I should be able to disable parts of the project from being booted up to get around these sorts of errors.

**Desktop (please complete the following information):**

- Ubuntu 24.04

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự cố với `swa start` trong một dự án SWA sử dụng managed API, Node.js v24.5.0, SWA CLI 2.0.6 và function runtime .NET 8 isolated. Theo dõi cấu hình managed API và đường dẫn khởi động của Azure Functions Core Tools. Công việc được xem là hoàn thành khi CLI có thể khởi động thiết lập này hoặc cung cấp một cách được ghi lại để vô hiệu hóa thành phần dự án đang gây lỗi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure, node.js, typescript
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.