Calls to setTimeout during initialization cause build to fail
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, wasm
- 領域
- build-system
研究方向
在連結的重現儲存庫中執行 pnpm install --frozen-lockfile 和 pnpm build:pdf-kit。以 FSWatcher2 周圍的 pdfkit.js 堆疊和 @jspm/core 的瀏覽器 fs 進入點作為起點,然後驗證建置是否在沒有初始化例外或未處理 rejection 的情況下完成。
由索引模型根據 Issue 內容生成。
描述
I'm attempting to build some code using the pdfkit library and after replacing any APIs that are not currently supported I'm met with the following error:
Exception while evaluating top-level script
pdfkit.js:29390:26 TypeError: setTimeout can only be used during request handling, not during initialization
Additionally, some promises were rejected, but the rejection never handled:
Promise rejected but never handled: setTimeout can only be used during request handling, not during initialization
Stack:
dew$28/FSWatcher2/_this._persist@pdfkit.js:29390:26
dew$28/FSWatcher2.prototype.start@pdfkit.js:29498:30
dew$28/Volume2.prototype.watch@pdfkit.js:29065:17
watchStdo@pdfkit.js:29594:7
node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/fs.js@pdfkit.js:29756:14
__init@pdfkit.js:14:56
@pdfkit.js:42457:1
This can be reproduced by cloning my test repo and running the following command:
pnpm install --frozen-lockfile
pnpm build:pdf-kit
- 主要語言
- Rust
- 星號
- 392
- 分支
- 54
- 平均合併
- 2 天 18 小時
- 30 天內合併 PR
- 3
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bytecodealliance/ComponentizeJS 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
-
enhancement
難度 4/5 3-5 天 新手友好度 56/100
-
難度 3/5 1-2 天 新手友好度 52/100
-
難度 4/5 3-5 天 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 48/100
bytecodealliance/ComponentizeJS#335 · 3 則留言 ·
查看 bytecodealliance/ComponentizeJS 的全部 Issue
相似的 Issue
-
bug github_actions
難度 2/5 1-3 小時 新手友好度 75/100
registrystack/registry-stack#1393 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
難度 2/5 1-3 小時 新手友好度 65/100
rocky-data/rocky#2181 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
oasisprotocol/oasis-sdk#2523 ·
-
bot:ai-assisted component:indexer QA-roadmap status:untriaged
難度 2/5 1-3 小時 新手友好度 75/100
midnightntwrk/midnight-indexer#1557 ·