logseq / logseq/logseq-plugin-samples
Node 22 broken for ARM macOS
还没有人认领这个 Issue。
- 主要语言
- CSS
- 星标
- 383
- 派生
- 97
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've been testing a variety of sample plugins, and they all seem broken during build. i came across a reference to the error that was happening during the build, and it suggested that the issue has something to do with an incompabitiblity between node 22 and something in `@libseq/libs` that is not in node 20. I used nvm to switch to node 20, and each sample repo built successfully.
**Node 22:**
```
ogseq-plugin-samples/logseq-a-translator on master [!?] is 📦 v0.0.1 via v22.9.0 via 💎 v3.0.5 took 3s
❯ npm run build
> logseq-a-translator@0.0.1 build
> parcel build --public-url . --no-source-maps index.html
(node:95127) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
⠙ Building index.html...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#brows
⠸ Building index.ts...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#brows
⠼ Building index.ts...
node(95127,0x16fd9b000) malloc: Incorrect checksum for freed object 0x11d8c0e00: probably modified after being freed.
Corrupt value: 0x10220a4930383839
node(95127,0x178407000) malloc: Incorrect checksum for freed object 0x10a847600: probably modified after being freed.
Corrupt value: 0x10220a4930383839
node(95127,0x178407000) malloc: *** set a breakpoint in malloc_error_break to debug
node(95127,0x16fd9b000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort npm run build
```
**Node 20:**
```
logseq-plugin-samples/logseq-a-translator on master [!?] is 📦 v0.0.1 via v20.18.0 via 💎 v3.0.5 took 3s
❯ npm run build
> logseq-a-translator@0.0.1 build
> parcel build --public-url . --no-source-maps index.html
⠙ Building index.html...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#brows
⠹ Building index.html...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#brows
⠼ Building lsplugin.user.js...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#brows
✨ Built in 1.09s
dist/index.html 383 B 471ms
dist/index.9947b3c0.js 90.11 KB 213ms
```
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在使用 Node 22 和 Node 20 的示例插件中复现 `npm run build`,重点关注 `index.ts` 的构建以及报告的 `@libseq/libs` 不兼容问题。比较示例仓库使用的依赖项和构建配置;当示例能够在 ARM macOS 上使用 Node 22 成功构建时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nodejs
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100