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.
fresh: 2.2.2
vite: 7.1.3
wrangler: 4.81.1
@cloudflare/vite-plugin: 1.31.2
Steps to Reproduce
- Create a new Fresh Project
deno run -Ar jsr:@fresh/init
- 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()],
});
- Create the
wrangler.jsonc file with the following contents:
- Create the
server.js file with the following contents:
import server from "./_fresh/server.js";
export default {
fetch: server.fetch,
};
- 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
$
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 devcommand.fresh: 2.2.2vite: 7.1.3wrangler: 4.81.1@cloudflare/vite-plugin: 1.31.2Steps to Reproduce
vite.config.tsfile with the following contents:wrangler.jsoncfile 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, }, }server.jsfile with the following contents:deno task devExpected behavior
Start dev server.
Actual behavior
No logs are output, and it terminates immediately.