-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
engineeringProblems or updates to developers.cloudflare.com websiteProblems or updates to developers.cloudflare.com website
Description
Example URL(s)
- https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/hono/
Following the example on the site above, I deployed the template and its fails to deploy or build:
Actual Behavior
pnpm create cloudflare@latest my-hono-app --template=cloudflare/templates/vite-react-template
.../19ab6d364c6-810 | +1 +
.../19ab6d364c6-810 | Progress: resolved 1, reused 0, downloaded 1, added 1, done
──────────────────────────────────────────────────────────────────────────────────────────────────────────
👋 Welcome to create-cloudflare v2.55.1!
🧡 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-hono-app
│
├ What would you like to start with?
│ category Template from a GitHub repo
│
├ What's the url of git repo containing the template you'd like to use?
│ repository cloudflare/templates/vite-react-template
│
├ Cloning template from: cloudflare/templates/vite-react-template
│
├ template cloned and validated
│
├ Copying template files
│ files copied to project directory
│
├ Installing dependencies
│ installed via `pnpm install`
│
╰ Application created
╭ Configuring your application for Cloudflare via `wrangler setup` Step 2 of 3
│
├ Installing wrangler A command line tool for building Cloudflare Workers
│ installed via `pnpm install wrangler --save-dev`
│
├ Generating types for your application
│ generated to `./worker-configuration.d.ts` via `pnpm run cf-typegen`
│
├ Installing @types/node
│ installed via pnpm
│
├ Do you want to use git for version control?
│ yes git
│
├ Initializing git repo
│ initialized git
│
├ Committing new files
│ git commit
│
╰ Application configured
╭ Deploy with Cloudflare Step 3 of 3
│
├ Do you want to deploy your application?
│ yes deploy via `pnpm run deploy`
│
├ Logging into Cloudflare checking authentication status
│ logged in
│
├ Selecting Cloudflare account retrieving accounts
│ account more than one account available
│
├ Which account do you want to use?
│ account [email protected]'s Account
│
> vite-react-template@ deploy /home/bryson/code/habit_freaks_christoph_merrill/my-hono-app
> wrangler deploy
Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
⛅️ wrangler 4.50.0
───────────────────
✘ [ERROR] The directory specified by the "assets.directory" field in your configuration file does not exist:
/home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/dist/client
🪵 Logs were written to "/home/bryson/.config/.wrangler/logs/wrangler-2025-11-24_17-05-36_282.log"
ELIFECYCLE Command failed with exit code 1.
╰ ERROR Error
bryson@SDIPF2482EZ:~/code/habit_freaks_christoph_merrill$ cd my-hono-app/
bryson@SDIPF2482EZ:~/code/habit_freaks_christoph_merrill/my-hono-app$ pnpm build
> vite-react-template@ build /home/bryson/code/habit_freaks_christoph_merrill/my-hono-app
> tsc -b && vite build
failed to load config from /home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/vite.config.ts
error during build:
file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/@[email protected][email protected][email protected]_@[email protected][email protected][email protected]/node_modules/@cloudflare/vite-plugin/dist/index.js:13606
experimental_maybeStartOrUpdateRemoteProxySession,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'experimental_maybeStartOrUpdateRemoteProxySession' not found. The requested module 'wrangler' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'wrangler';
at ModuleJob._instantiate (node:internal/modules/esm/module_job:220:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:321:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
at async loadConfigFromBundledFile (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49451:15)
at async bundleAndLoadConfigFile (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49294:22)
at async loadConfigFromFile (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49257:44)
at async resolveConfig (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:48752:24)
at async createBuilder (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46736:18)
at async CAC.<anonymous> (file:///home/bryson/code/habit_freaks_christoph_merrill/my-hono-app/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/cli.js:862:23)
ELIFECYCLE Command failed with exit code 1.Expected Behavior
Site would build and deploy as a sample to cloudflare account.
Additional information
Running on WSL 2 windows 11,
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
Metadata
Metadata
Assignees
Labels
engineeringProblems or updates to developers.cloudflare.com websiteProblems or updates to developers.cloudflare.com website