S
SolidJS8mo ago
hannus

[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.
No description
14 Replies
hannus
hannusOP8mo ago
solidstart is latest version I have never changed any code from the project build on
lxsmnsyc
lxsmnsyc8mo ago
There's another error indicated in there (1 of 2), can you show the other error?
hannus
hannusOP8mo ago
No description
hannus
hannusOP8mo ago
sure, please check it
lxsmnsyc
lxsmnsyc8mo ago
Is this a fresh project?
hannus
hannusOP8mo ago
yes
lxsmnsyc
lxsmnsyc8mo ago
So this only happened after you added a new page right?
hannus
hannusOP8mo ago
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...
hannus
hannusOP8mo ago
yes, error be throwed after added a new page mdx or jsx, both issue error
lxsmnsyc
lxsmnsyc8mo ago
have you tried restarting the dev server?
hannus
hannusOP8mo ago
yes
lxsmnsyc
lxsmnsyc8mo ago
cleared some cache maybe I think it's a known issue
Brendonovich
Brendonovich8mo ago
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 ¯\_(ツ)_/¯
hannus
hannusOP8mo ago
I am going to try now okay, problem be solved thanks a lot.
Want results from more Discord servers?
Add your server