Open ismail424 opened 1 year ago
What was the solution?
I actually don't know, When I created a new project using bun create svelte@latest my-app
and ran a demo app.
It magically fixed the problem but I think some datatypes are not allowed to be returned from PageData or something like that. I am currently trying to debug it to se what is causing the problem.
This down bellow is a example code from the demo app that works. 🤔
It was a problem with a datatype that was returnered, It was a 'Invalid date' (Error) that was accidently returned.
@ismail424, could you test this again? It seems it is a Bun Node compatibility error, which is likely resolved since.
When using the Bun adapter with SvelteKit, I encounter an internal 500 error during client-side navigation (when pressing on a "a tag with href").
The error seems related to fetching PageData for that route.
It works fine if I refresh the page but when I navigate to it with client-side-navigation it gives me the error.
Steps to Reproduce:
Expected Behavior:
Additional Information: Request URL causing the issue: http://localhost:3000/settings/__data.json?x-sveltekit-invalidated=0011 SvelteKit version: latest Bun adapter version: 0.5.0
Error Logs:
Screenshots (if applicable):