Azure / Azure/static-web-apps-cli

Launch issues with Node 25.6

オープン
#985 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
668
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

Before filing this issue, please ensure you're using the latest CLI by running `swa --version` and comparing to the latest version on [npm](https://www.npmjs.com/package/@azure/static-web-apps-cli).

**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.
`swa` fails to load under Node 25.6.0 due it compatibility issue with buffer-equa-constant-time and jwa package
```
yarn az:deploy
/Users//projects/myproject/node_modules/buffer-equal-constant-time/index.js:37
var origSlowBufEqual = SlowBuffer.prototype.equal;
^

TypeError: Cannot read properties of undefined (reading 'prototype')
at Object. (/Users//projects/myproject/node_modules/buffer-equal-constant-time/index.js:37:35)
at Module._compile (node:internal/modules/cjs/loader:1809:14)
at Object..js (node:internal/modules/cjs/loader:1940:10)
at Module.load (node:internal/modules/cjs/loader:1530:32)
at Module._load (node:internal/modules/cjs/loader:1332:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1553:12)
at require (node:internal/modules/helpers:152:16)
at Object. (/Users//projects/myproject/node_modules/jws/node_modules/jwa/index.js:1:19)
at Module._compile (node:internal/modules/cjs/loader:1809:14)
```
Note: `yarn az:deploy` is an alias for `swa build && swa deploy --env production`

Related: https://github.com/auth0/node-jsonwebtoken/issues/992

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

1. Install Node 25.6.0 (I used mise)
2. `yarn swa -h`
3. Error thrown
4.
**Expected behavior**
`swa` tool does whatever you asked it to

**Screenshots**
If applicable, add screenshots to help explain your problem.
N/A

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

- OS: [e.g. iOS] macOS 26.2
- Version [e.g. 22] Node 25.6.0, `"@azure/static-web-apps-cli": "^2.0.8"`

**Additional context**
Add any other context about the problem here.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、`swa --version` で CLI のバージョンを確認したうえで、`yarn swa -h` を使用して Node 25.6.0 で失敗を再現します。`buffer-equal-constant-time`、`jws`、`jwa` を通る依存関係の経路を追跡します。Node 25.6.0 で報告された TypeError なしに CLI コマンドが正常に読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。