Vanilla extract does not work with Cloudflare Vite plugin due to resolve.external

Hey team, I will be cross-sharing this message to VE people as well Vanilla-extract vite plugin does not work with cloudflare vite plugin and returns a following error
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.
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.
Are there any known workaround for this? Why the cloudflare vite plugin does not support optimizeDep.exclude and resolve.external?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?