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