logseq / logseq/logseq-plugin-samples
Node 22 broken for ARM macOS
Personne n'a encore pris cette issue.
- Langage dominant
- CSS
- Étoiles
- 383
- Forks
- 97
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire `npm run build` dans un plugin d’exemple avec Node 22 et Node 20, en vous concentrant sur le build de `index.ts` et sur l’incompatibilité signalée de `@libseq/libs`. Comparez les dépendances et la configuration de build utilisées par les dépôts d’exemple ; la tâche est terminée lorsque les exemples se construisent correctement sur ARM macOS avec Node 22.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- nodejs
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100