logseq / logseq/logseq-plugin-samples
Node 22 broken for ARM macOS
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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