-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Which project does this relate to?
Start
Describe the bug
After setting up the Cloudflare plugin on a @tanstack/solid-start project, the dev server gives this error on start:
error when starting dev server:
Error: The following environment options are incompatible with the Cloudflare Vite plugin:
- "ssr" environment: `resolve.external`: ["@solid-primitives/refs","tiny-invariant","@tanstack/history","@solid-devtools/logger","@tanstack/router-core","tiny-warning","isbot","@tanstack/store"]
To resolve this issue, avoid setting `resolve.external` in your Cloudflare Worker environments.
at validateWorkerEnvironmentOptions (file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/@cloudflare+vite-plugin@1.13.7_vite@7.1.7_tsx@4.20.6__workerd@1.20250924.0_wrangler@4.40.2/node_modules/@cloudflare/vite-plugin/dist/index.js:17244:11)
at BasicMinimalPluginContext.configResolved (file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/@cloudflare+vite-plugin@1.13.7_vite@7.1.7_tsx@4.20.6__workerd@1.20250924.0_wrangler@4.40.2/node_modules/@cloudflare/vite-plugin/dist/index.js:17373:11)
at file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/vite@7.1.7_tsx@4.20.6/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:35994:87
at Array.map (<anonymous>)
at resolveConfig (file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/vite@7.1.7_tsx@4.20.6/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:35994:68)
at async _createServer (file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/vite@7.1.7_tsx@4.20.6/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:28008:67)
at async CAC.<anonymous> (file:///Users/jakst/code/tmp/solid-start-solid-rc-broken/node_modules/.pnpm/vite@7.1.7_tsx@4.20.6/node_modules/vite/dist/node/cli.js:573:18)
ELIFECYCLE Command failed with exit code 1.
Running pnpm vite build && pnpm wrangler dev or pnpm vite preview, works as expected.
Note that I haven't tried any of the actual integrations with Cloudflare. This is just for getting it running.
Your Example Website or App
https://github.com/jakst/solid-start-solid-rc-broken/tree/cloudflare-broken
Steps to Reproduce the Bug or Issue
- Clone the repo
- Make sure you are on the
cloudflare-brokenbranch - Install deps
- Run
pnpm dev. You should get the error message from above.
Expected behavior
I expect the dev server to work when using the Cloudflare Vite plugin with Tanstack Solid Start.
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.132.23/1.132.24
- OS: MacOs v15.6.1
- Browser: Chrome
- Browser Version: v140
- Bundler: Vite
- Bundler Version: 7.1.7
Additional context
No response
taobojlen
Metadata
Metadata
Assignees
Labels
No labels