-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SolidJS integration on Vercel Edge breaks with "Ua is not supported in the browser" #6989
Comments
I don't have a min example to contribute, but I think I'm getting the same thing on Cloudflare as well. Same deps cause the same blank issue, and locking to |
Same issue here on Cloudflare, can confirm that 2.1.1 is the breaking version. It looks like because solid is not externalized any more, the worker build includes the web version of solid-js, which doesn't contain renderToString but a mock version of it, which just throws the error message. With disabled minification, the error message is |
It's related to the module resolution done by the final esbuild step. Since it's currently set to target |
While #7092 fixes the case for cloudflare, I think there was an unintentional breaking change somewhere. Gonna look into this again this week |
Looks like #4888 is causing quite some issues:
So I'm thinking of a plan of:
|
Step 1-4 should be done now, so updating to the latest version of Marking this closed as the stuff to do is completed, the next release should come around today or tomorrow for Astro 2.5 + the other packages. |
OK so I was getting the same error after updating everything to the latest version. Took quite a while to debug but I needed to remove the export default defineConfig({
vite: {
ssr: {
noExternal: ["solid-js"]
}
}
}); |
Currently getting this error with |
My cloudflare deployment using astro 3 and latest SolidJS integration is working fine, so I assume it's something unrelated. |
What version of
astro
are you using?2.3.4
Are you using an SSR adapter? If so, which one?
Vercel Edge
What package manager are you using?
pnpm
What operating system are you using?
Windows
What browser are you using?
Chrome, Firefox
Describe the Bug
It appears that issue #5915 has re-appeared recently. Using versions
astro@^2.3.4
,@astrojs/solid-js@^2.1.1
,@astrojs/vercel@^3.3.0
, I'm getting the following error in Vercel logs, and an empty SolidJS component on client. Note that this error only appears when deployed.The minimal reproducible example is identical to that of issue #5915, except for the updated packages as described above.
Link to Minimal Reproducible Example
https://github.com/pilcrowOnPaper/astro-vercel-solid
Participation
The text was updated successfully, but these errors were encountered: