logseq / logseq/logseq-plugin-samples

Node 22 broken for ARM macOS

Abierto
#39 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
CSS
Estrellas
383
Forks
97
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo npm run build en un plugin de ejemplo con Node 22 y Node 20, centrándote en la compilación de index.ts y en la incompatibilidad notificada de @libseq/libs. Compara las dependencias y la configuración de compilación utilizadas por los repositorios de ejemplo; la tarea estará completa cuando los ejemplos se compilen correctamente en ARM macOS con Node 22.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
nodejs
Área
build-system
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.