Get Fresh working in Node
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript, vite
- Ambito
- backend, build-system
Direzione di ricerca
Start with the import chain in packages/plugin-vite/src/mod.ts, packages/plugin-vite/src/plugins/server_entry.ts, packages/fresh/src/internals_dev.ts, and packages/fresh/src/dev/builder.ts, then inspect the referenced middleware.tsx and the installed @fresh/core package. Check why the .tsx source has no corresponding compiled .js file and whether the cause is Fresh packaging or JSR. Done means the Vite config loads in Node with @fresh/plugin-vite.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm trying to see if @fresh/plugin-vite can be made to work in Node (not Deno). One of the issues I've run into is that this package depends (indirectly) on a .tsx file, which results in the vite config failing to load.
I've traced it to the middleware.tsx file.
Import chain
For some reason, the @fresh/core JSR package, when installed through npm/pnpm, does not contain the compiled .js files next to the .tsx source files. This is unlike the .ts files, each of which does have a corresponding .js file next to them. There is no easy way to "inspect" this on the web, but you can verify it by running pnpm install jsr:@fresh/core and looking inside the node_modules folder (see screenshot).
This could either be some misconfiguration or a potential bug in JSR. I saw https://github.com/jsr-io/jsr/issues/24#issuecomment-2677117503 which claims that JSX is supported, so this scenario is supposed to work in theory at least.
- Lingua principale
- TypeScript
- Stelle
- 13.8k
- Fork
- 757
- Merge medio
- 3m
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 freshframework/fresh
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
freshframework/fresh#3920 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
freshframework/fresh#3833 ·
-
feat
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
freshframework/fresh#3803 · 1 commento ·
-
Did you stop maintaining it?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
freshframework/fresh#3918 · 1 commento · 4 reazioni ·
-
Tab title doesn't update to <Head> <title> when navigating to a page with another <title>Forse già presa @1AbdullahButt l’ha presa 8 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
freshframework/fresh#3916 ·
Tutte le issue di freshframework/fresh
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
SocialGouv/egapro#5212 ·
I maintainer di solito rispondono entro 2 giorni
-
area:filesystem bug need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Captions panel does not offer to show an existing transcriptForse già presa @thedavidweng l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CapSoftware/Cap#4276 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nightly-labs/openbot#10242 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno