-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I have small 5 pages SPA, and would like to render the initial html only from the server to set the header, title, meta tags etc. Rest all navigation should be on client side only.
So I used your example and passed all the loader data on root level, everything working fine on react-router dev
, but getting plugin errors on build:
react-router.config.ts
import type { Config } from '@react-router/dev/config'
export default {
ssr: false,
} satisfies Config
Build error on entry.server.tsx
const body = await renderToReadableStream( |
[react-router] The requested module 'react-dom/server' does not provide an export named 'renderToReadableStream'
Metadata
Metadata
Assignees
Labels
No labels