Skip to content

create-cloudflare v2.68.0 parse error #13799

@git-nico

Description

@git-nico

What versions & operating system are you using?

System:
OS: Windows 11 10.0.26200
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 17.10 GB / 31.80 GB
npmPackages:
@better-auth/cli: ~1.4.21 => 1.4.21
@eslint/compat: ^2.0.4 => 2.0.5
@eslint/js: ^10.0.1 => 10.0.1
@libsql/client: ^0.17.2 => 0.17.3
@sveltejs/adapter-auto: ^7.0.1 => 7.0.1
@sveltejs/adapter-cloudflare: ^7.2.8 => 7.2.8
@sveltejs/kit: ^2.57.0 => 2.59.0
@sveltejs/vite-plugin-svelte: ^7.0.0 => 7.0.0
@tailwindcss/vite: ^4.2.2 => 4.2.4
@types/node: ^24 => 24.12.2
better-auth: ~1.4.21 => 1.4.22
drizzle-kit: ^0.31.10 => 0.31.10
drizzle-orm: ^0.45.2 => 0.45.2
eslint: ^10.2.0 => 10.3.0
eslint-config-prettier: ^10.1.8 => 10.1.8
eslint-plugin-svelte: ^3.17.0 => 3.17.1
globals: ^17.4.0 => 17.6.0
prettier: ^3.8.1 => 3.8.3
prettier-plugin-svelte: ^3.5.1 => 3.5.1
prettier-plugin-tailwindcss: ^0.7.2 => 0.7.4
svelte: ^5.55.2 => 5.55.5
svelte-check: ^4.4.6 => 4.4.7
tailwindcss: ^4.2.2 => 4.2.4
typescript: ^6.0.2 => 6.0.3
typescript-eslint: ^8.58.1 => 8.59.1
vite: ^8.0.7 => 8.0.10
wrangler: ^4.87.0 => 4.87.0

Please provide a link to a minimal reproduction

Describe the Bug

running pnpm create cloudflare@latest my-svelte-app --framework=svelte gives an error:
Error: Error parsing file: svelte.config.js

This happens (only) when you go through the script step by step and also add drizzle (with libSQL) to the project.

Please provide any relevant error logs

pnpm create cloudflare@latest my-svelte-app

──────────────────────────────────────────────────────────────────────────────────────────────────────────
👋 Welcome to create-cloudflare v2.68.0!
🧡 Let's get started.
📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.

Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
──────────────────────────────────────────────────────────────────────────────────────────────────────────

╭ Create an application with Cloudflare Step 1 of 3

├ In which directory do you want to create your application?
│ dir ./my-svelte-app

├ What would you like to start with?
│ category Framework Starter

├ Which development framework do you want to use?
│ framework SvelteKit

├ Select your deployment platform
│ platform Workers with Assets

├ Continue with SvelteKit via pnpm dlx sv@0.15.2 create my-svelte-app

HINT: Run "sv --help" to get the full list of commands, add-ons, and examples to one-shot and skip interactive prompts.
T Welcome to the Svelte CLI! (v0.15.2)
|
o Which template would you like?
| SvelteKit minimal
|
o Add type checking with TypeScript?
| Yes, using TypeScript syntax
|
o What would you like to add to your project? (use arrow keys / space bar)
| drizzle
|
o Which database would you like to use?
| SQLite
|
o Which SQLite client would you like to use?
| libSQL
|

  • Project created
    |
  • Successfully setup add-ons: drizzle
    |
    o Which package manager do you want to install dependencies with?
    | pnpm
    |
    | To skip prompts next time, run:
    • pnpm dlx sv@0.15.2 create --template minimal --types ts --add drizzle="database:sqlite+sqlite:libsql" --install pnpm my-svelte-app
    |
  • Successfully installed dependencies with pnpm
    |
    o What's next? -------------------------------------------------+
    | |
    | 📁 Project steps |
    | |
    | 1: cd my-svelte-app |
    | 2: pnpm run dev --open |
    | |
    | To close the dev server, hit Ctrl-C |
    | |
    | 🧩 Add-on steps |
    | |
    | drizzle: |
    | - Check DATABASE_URL in .env and adjust it to your needs |
    | - Run pnpm run db:push to update your database schema |
    | |
    | Stuck? Visit us at https://svelte.dev/chat |
    | |
    +----------------------------------------------------------------+
    |
    — You're all set!

├ Copying template files
│ files copied to project directory

╰ Application created

╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing wrangler A command line tool for building Cloudflare Workers
│ installed via pnpm install wrangler --save-dev

├ Retrieving current workerd compatibility date
│ compatibility date 2026-05-04

├ Adding the Cloudflare adapter
│ installed @sveltejs/adapter-cloudflare

├ Changing adapter in svelte.config.js

╰ ERROR Error: Error parsing file: svelte.config.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions