-
Notifications
You must be signed in to change notification settings - Fork 320
Open
Labels
Description
Describe the bug
Run pnpm create cloudflare@latest my-react-router-app --framework=react-router
and update vite config. Or see reproduction below.
Error: The following environment configurations are incompatible with the Cloudflare Vite plugin:
- "ssr" environment: `resolve.external`: ["@vanilla-extract/css","@vanilla-extract/css/fileScope","@vanilla-extract/css/adapter"]
To resolve this issue, avoid setting `optimizeDeps.exclude` and `resolve.external` in your Cloudflare Worker environments.
Reproduction
https://github.com/kigawas/vanilla-extract-cloudflare
System Info
Not related
Used Package Manager
pnpm
Logs
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
BPScott