-
-
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
Visiting route /examples
throws error without 404 on dev server
#8613
Comments
What do you mean by breaks the dev server? In the SB it does a 404, is that what you mean? |
The reproduction has a misspelling, the file is named |
Oops, my bad! I fixed the file name, but the error is still occurring. It looks like this is working on stackblitz but locally (using Windows and pnpm) it throws the error in the screenshot above and does not 404 Repo: https://github.com/BryceRussell/astro-issue-collection-breaking-dev Example of bugged Example of a page that shows 404: Example of a working route: |
examples
breaks dev server/examples
throws error without 404
/examples
throws error without 404/examples
throws error without 404 on dev server
It looks like Content Collections has nothing to do with this, this is happening to the route |
This might be a Vite bug. Do you have |
@bluwy I do, I guess at some point I accidentally created an Astro project at Confirmed that deleting this fixes the problem |
Looks like you're hitting vitejs/vite#6859 so I don't think there's much that can be done in Astro. But it's good to know that it can be reproduced without needing the Astro project also in the root in the first place in contrary to that issue. I'll close this for now! |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When visiting the route
/examples
the dev server throws an error and does not 404Other pages/routes render correctly or throw a 404 if they don't exist
What's the expected result?
For the dev server render the page like normal or show 404
Link to Minimal Reproducible Example
https://github.com/BryceRussell/astro-issue-collection-breaking-dev
The reproduction works on stackblitz but does not work locally (I am using Windows and pnpm)
https://stackblitz.com/github/BryceRussell/astro-issue-collection-breaking-devParticipation
The text was updated successfully, but these errors were encountered: