Skip to content

Plugin error when using ssr: false #68

@vickyRathee

Description

@vickyRathee

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'

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions