[solved]Issue with Solid Start MDX Project: 404 Error for New Page
Hello,
I have created a Solid Start project using the “with MDX” mode. By default, the navigation includes an “About” page. However, when I click on the “About” page, it redirects to a 404 page (specifically, the “[…404].mdx” page located in the “routes” directory). I manually added an “about.mdx” file in the “routes” folder, but even after doing so, attempting to access “/about” still results in the 404 page (regardless of whether it’s “routes/about.mdx” or “routes/about/index.mdx”).
Additionally, when I refresh the “/about” page, I encounter the error shown in the attached screenshot.
Any guidance on resolving this issue would be greatly appreciated. Thank you!
: Screenshot of the error encountered when refreshing the “/about” page.
14 Replies
solidstart is latest version
I have never changed any code from the project build on
There's another error indicated in there (1 of 2), can you show the other error?
sure, please check it
Is this a fresh project?
yes
So this only happened after you added a new page right?
I am following the course from https://www.youtube.com/watch?v=B6ZWvYGCHU0&list=PLxiHDaVuscIjMeyXhqiAx0jtrkuw81yrF&index=12 , it seems a little different between the course and the latest version of start
Ebenezer Don
YouTube
SolidStart Crash Course - Build And Deploy A Blog // SolidJS Tutorial
In this SolidStart tutorial, you'll learn how to build and deploy an SSR/SSG blog with SolidJS and SolidStart, the meta-framework powered by SolidJS and the Solid router.
Get started with PostHog: https://posthog.com/ebenezer
SolidJS crash course: https://youtu.be/B6ZWvYGCHU0
Hosted SolidStart blog: https://solid-start-blog.vercel.app/docs
Git...
yes, error be throwed after added a new page
mdx or jsx, both issue error
have you tried restarting the dev server?
yes
cleared some cache maybe
I think it's a known issue
fwiw i remember creating a new ss project not long ago and running into hydration key errors pretty quickly
been using ssr: false since then so ¯\_(ツ)_/¯
I am going to try now
okay, problem be solved
thanks a lot.