Unable to start Fresh dev server with @cloudflare/vite-plugin

Aperta
#3,771 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
deno, typescript, vite
Ambito
devtools

Direzione di ricerca

Start with the Fresh Vite plugin and the Cloudflare Vite plugin entry points, then reproduce the reported setup on Windows using deno task dev. The issue gives a configuration and versions, but no failing logs to narrow down where startup exits. Done means identifying and fixing the cause so the development server starts and serves the Fresh app.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug upstream

I set up a Fresh project following the instructions in Cloudflare Workers | Fresh docs, but the development server does not start when I run the deno task dev command.

  • Deno: 2.7.12
  • fresh: 2.2.2
  • vite: 7.1.3
  • wrangler: 4.81.1
  • @cloudflare/vite-plugin: 1.31.2
  • Windows 11 25H2
Steps to Reproduce
  1. Create a new Fresh Project
deno run -Ar jsr:@fresh/init
  1. Create the vite.config.ts file with the following contents:
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
import tailwindcss from "@tailwindcss/vite";
import { cloudflare } from "@cloudflare/vite-plugin";

export default defineConfig({
  plugins: [fresh(), tailwindcss(), cloudflare()],
});
  1. Create the wrangler.jsonc file with the following contents:
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "name": "argxentakato-me",
  // Set this to today's date
  "compatibility_date": "2026-04-12",
  "main": "./server.js",
  "compatibility_flags": ["nodejs_compat"],
  "observability": {
    "enabled": true,
  },
}
  1. Create the server.js file with the following contents:
import server from "./_fresh/server.js";

export default {
  fetch: server.fetch,
};
  1. Run Command deno task dev
Expected behavior

Start dev server.

$ deno task dev
Task dev vite

  VITE v7.3.2  ready in 573 ms

  ➜  Local:   http://127.0.0.1:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

...
Actual behavior

No logs are output, and it terminates immediately.

$ deno task dev
Task dev vite
$
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di freshframework/fresh

Tutte le issue di freshframework/fresh

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.