solid-swr icon indicating copy to clipboard operation
solid-swr copied to clipboard

adding swr-provider to solid-start router root crashes the ssr

Open crazydaisyew opened this issue 1 year ago • 5 comments

Adding the SWRProvider to the root of the ProjectFiles leads to a pnpm error

Error when evaluating SSR module /src/entry-server.tsx: failed to import "solid-swr"

Only works if vite config "ssr" rule is disabled

crazydaisyew avatar Dec 10 '24 15:12 crazydaisyew

hey, thanks for the issue report

I am not using ssr myself, so please provide a minimal reproducible example

tronikelis avatar Dec 10 '24 16:12 tronikelis

maybe this is also related to https://github.com/tronikelis/solid-swr/issues/64 ?

tronikelis avatar Dec 11 '24 19:12 tronikelis

@crazydaisyew can you check with 5.0.2 ?

tronikelis avatar Dec 13 '24 16:12 tronikelis

@tronikelis nope, still the same, I think it's an internal solid-js issue, maybe something vite config related, i could share the code if it's something you'd want to investigate, i've spend a lot of time trying to find the issue though

crazydaisyew avatar Jan 08 '25 07:01 crazydaisyew

if you could send the code yeah would be nice, I'll try to check it sometime in the future

tronikelis avatar Jan 08 '25 13:01 tronikelis