SSR manifest: `vite build --app --watch` embeds the previous round's client index.html
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 46/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, rust
- Domínio
- build-system, devtools
Direção de pesquisa
Read the watch-mode build flow around buildStart, generateBundle, transform, and renderChunk, then trace how the server environment reads the client index.html. Reproduce with vite build --app --watch and inspect the SSR output across consecutive rounds. Done means each round embeds the matching client page and a client-only change also updates the server output.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Follow-up to #696 (fixed in #697 for normal builds). Found while reviewing #697.
In vite build --app --watch the server environment reads the client index.html in its own buildStart. The client of the same round only writes the new page later, in generateBundle. So every round embeds the page from the round before:
round 1 embeds /src/main.ts (source page) disk: index-CDAm_wYV.js
round 2 embeds index-CDAm_wYV.js disk: index-DK41E1g1.js
round 3 embeds index-DK41E1g1.js disk: index-CheYs2QK.js
→ the SSR page loads a script that is 404 and never hydrates
#697 prints a warning each round, so this is not silent, but the output is still wrong. In watch mode the two environments run at the same time, so listing client first doesn't help.
Possible fix: each client round resolves a promise in its generateBundle. The server embeds a placeholder at transform time and fills it in renderChunk / generateBundle after awaiting that promise. A client-only change also needs to rebuild (or patch) the server output.
- Linguagem predominante
- Rust
- Estrelas
- 245
- Forks
- 26
- Merge médio
- 1d 23min
- PRs com merge (30d)
- 83
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de voidzero-dev/oxc-angular-compiler
-
partial: host binding map keys are not always quoted like ngtsc (`click:` vs `"click":`)Talvez já em andamento @Brooooooklyn assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
voidzero-dev/oxc-angular-compiler#686 ·
Mantenedores costumam responder em até 1 dia
-
output: non-ASCII text not escaped like ngtsc; linker adds `changeDetection: 1` for v19 / v20.1Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
voidzero-dev/oxc-angular-compiler#707 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
voidzero-dev/oxc-angular-compiler#706 ·
Mantenedores costumam responder em até 1 dia
-
host bindings: empty `[]` / `()` keys accepted, and `aria-*` host bindings stay DOM propertiesAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
voidzero-dev/oxc-angular-compiler#704 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
voidzero-dev/oxc-angular-compiler#703 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de voidzero-dev/oxc-angular-compiler
Issues semelhantes
-
Panic on live viewport resize when unstyled elements exist in display: none subtreeTalvez já em andamento @GoCoder7 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
DioxusLabs/blitz#1488 ·
Mantenedores costumam responder em até 1 dia
-
🏷️ good first issue enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
S-Needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
vectordotdev/vrl#2042 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia