-
Notifications
You must be signed in to change notification settings - Fork 172
Open
Description
Describe the bug
I'm not sure if that's a bug or if I'm doing something wrong, but when I'm trying to use Route with components loaded via lazy, trying to render it with renderToStringAsync it returns an empty string.
Your Example Website or App
https://github.com/kaathewisegit/solid-ssr-issue
Steps to Reproduce the Bug or Issue
npm install- Run
npm run build:ssrorvite build --ssr src/entry-server --outDir dist/server/ - run
node dist/server/entry-server.js. It will return an empty string
Expected behavior
I expected it to return lazily loaded component. Replacing <Route path="/" component={lazy(() => import("./component"))} /> with an explicit import and <Route path="/" component={Component}/> makes it work correctly.
Platform
- OS: Alpine Linux 3.24.0_alpha20260127
- Browser: none, runtime Node.js v24.13.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels