Closed nathanredblur closed 1 month ago
I can't reproduce as the following doesn't throw any error:
pnpm create bati --react --tailwindcss --authjs --trpc --hono --drizzle --cloudflare --biome
pnpm install
pnpm dev
Node version: 20.12.2
.
no dev, just build
fails
@nathanredblur Indeed, it should target es2022
by default. You can quickly fix it by running pnpm run build --target es2022
for now.
@magne4000 the idea is to run a preview, but your proposal not solves that.
"build": "vite build --target es2022",
"preview:wrangler": "wrangler pages dev",
Updating to vike-cloudflare@0.0.5
should fix the build issue.
If you still have issues with preview mode after updating, please create another issue with the new Error.
I'm using bati to create a initial project with this command
pnpm create bati --react --tailwindcss --authjs --trpc --hono --drizzle --cloudflare --biome
and when I try to create a build I get this error.
this is the configuration that comes by default when you create a new project
it's my first time with Vike and I don't have Idea what is the problem, but I think is related to this plugin.