-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
right now, the resolve.external
setting for the ssr
environment is currently unconditionally set here
vite-plugin-solid/src/index.ts
Line 280 in 904b25b
ssr: solidPkgsConfig.ssr, |
when used with e.g. the cloudflare vite plugin, this can cause the issue reported here:
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.
To resolve this, resolve.external
should not be set for the ssr
environment if noExternal === true
.
For this to work, setting this config must be moved to the configEnvironment
hook so that another plugin can set noExternal: true
in the config
hook which runs prior to the configEnvironment
hook.
taobojlen
Metadata
Metadata
Assignees
Labels
No labels