bytecodealliance / bytecodealliance/ComponentizeJS

Calls to setTimeout during initialization cause build to fail

Đang mở
#246 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug feature/wizer js-ecosystem-interop
Ngôn ngữ chính
Rust
Star
391
Fork
53
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
1

Mô tả

I'm attempting to build some code using the [pdfkit](https://www.npmjs.com/package/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](https://github.com/brettkolodny/react-pdf-wasm) and running the following command:

```
pnpm install --frozen-lockfile
pnpm build:pdf-kit
```

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.