S
SolidJS4d ago
A2va

Uncaught Client Exception

Hi! I recently deployed my blog website on cloudflare, and I hit a uncaught exception (Error | Uncaught Client Exception) when going to a post that doesn't exists. https://a2va.dev/blog/example It doesn't happens in local where it return the 404 page. Code: https://github.com/A2va/a2va.dev/blob/main/src/routes/blog/(post).tsx https://github.com/A2va/a2va.dev/blob/main/src/routes/%5B...404%5D.tsx PS: I tought this was only an issue with the blog sub path, but no it also happens on the 404 page. https://a2va.dev/blog/404
A2va | Home
Hey I'm A2va, in my spare time I'm also a contributor to many open source projects
A2va | Home
Hey I'm A2va, in my spare time I'm also a contributor to many open source projects
6 Replies
Madaxen86
Madaxen864d ago
Right away. I never deployed to cf myself. Did you follow the nitro docs? You may need to create a wrangler.toml https://nitro.build/deploy/providers/cloudflare#cloudflare-pages
Cloudflare - Nitro
Deploy Nitro apps to Cloudflare.
A2va
A2vaOP4d ago
I have not look that much at the nitro documentation, I only deployed using the solid start docs using the cloudflare web ui, so I'm not sure wrangler.toml is needed. https://docs.solidjs.com/guides/deployment-options/cloudflare#using-the-cloudflares-web-interface
Cloudflare - Solid Docs
Documentation for SolidJS, the signals-powered UI framework
Madaxen86
Madaxen864d ago
That’s the core docs I guess for a SPA. With SSR is a different story.
Madaxen86
Madaxen864d ago
There’s also this blog post by Ryan https://ryanjc.com/blog/solidstart-cloudflare-pages/
Deploying SolidStart to Cloudflare Pages
Deploying SolidStart (Nitro) to Cloudflare Pages
Madaxen86
Madaxen864d ago
Oh there's this docs on the cloudflare pages website for SolidStart ⭐️ https://developers.cloudflare.com/pages/framework-guides/deploy-a-solid-start-site/
Cloudflare Docs
SolidStart
Solid is an open-source web application framework focused on generating performant applications with a modern developer experience based on JSX.
A2va
A2vaOP4d ago
Thanks for your help ! I was able to fix the issue it was the nodejs_compat compatibility flag that was missing

Did you find this page helpful?