message-parser-napi: yarn build writes a binary index.js can't load, and turbo doesn't cache it
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
- Ambito
- backend, build-system
Direzione di ricerca
Read packages/message-parser-napi/package.json, index.js, and the root turbo.json; the issue also proposes adding packages/message-parser-napi/turbo.json. Start by checking the build script and Turbo output configuration against the reported build. Done means the generated binary can be loaded by the package and a Turbo cache hit restores the binary; pull request #44086 is already open.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
@rocket.chat/message-parser-napi (added in #44003) has two build problems. I reproduced both on develop (55905bd) with Turbo 2.11.7 and @napi-rs/cli 2.18.4.
1. The built binary has the wrong name. The build script runs napi build --release, which writes message-parser-napi.node. The checked-in index.js only loads message-parser-napi.<platform>.node (e.g. message-parser-napi.linux-x64-gnu.node) or the per-platform npm package, so right after yarn build:
$ node -e "require('./packages/message-parser-napi')"
Error: Cannot find module '@rocket.chat/message-parser-napi-linux-x64-gnu'
tests/compare.cjs (the package's yarn test) also requires ../index.
2. Turbo doesn't cache the output. The root turbo.json declares dist/** as build output, but this package writes *.node and index.d.ts next to its package.json. Every build prints:
WARNING no output files found for task @rocket.chat/message-parser-napi#build. Please check your `outputs` key in `turbo.json`
and a cache hit (local or CI's turbo cache) restores no binary.
Proposed fix (tested):
package.json:"build": "napi build --platform --release"- Add
packages/message-parser-napi/turbo.json:
{ "extends": ["//"], "tasks": { "build": { "outputs": ["*.node", "index.d.ts"] } } }
With both, the build writes message-parser-napi.linux-x64-gnu.node, require works, index.js is unchanged, the warning is gone, and a cache hit restores the binary. Nothing imports the package yet, so this is latent today.
I'm happy to open a PR.
- Lingua principale
- TypeScript
- Stelle
- 46.6k
- Fork
- 14.2k
- Merge medio
- 2g 21h
- PR unite (30g)
- 302
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/Rocket.Chat
-
ModerationConsoleTable renders blank area instead of error state when query failsForse già presa @Siddharth-singh18 l’ha presa 2 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
RocketChat/Rocket.Chat#44109 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Composer clears message text when the first uploaded file's media confirmation failsForse già presa @Sravan-0802 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RocketChat/Rocket.Chat#44087 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Subsequent OAuth logins overwrite persisted service fields (e.g. refreshToken) with nullForse già presa @ayushbuilds-code l’ha presa 4 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/Rocket.Chat#44053 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Custom OAuth callback times out when Merge roles from SSO is enabledForse già presa @Pantkartik l’ha presa 6 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RocketChat/Rocket.Chat#44005 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Heads-up: Issue Dedupe workflow pins claude-sonnet-4-5-20250929, which Anthropic retires Nov 30Forse già presa @Ravichandra531 l’ha presa 6 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
RocketChat/Rocket.Chat#43944 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/Rocket.Chat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zabuton-app/meguri#875 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
iruzen-dono/workless#117 ·
I maintainer di solito rispondono entro 1 giorno
-
area:api area:web wave wave:trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vetro-protocol/vetro-monorepo#1321 ·
I maintainer di solito rispondono entro 1 giorno