Skip to content

SSR Issue: window is not defined in release 2.0.1 #2187

@RomainLanz

Description

@RomainLanz

Hey there! 👋🏻

It seems like this PR might have broken the SSR of a component with the latest release 2.0.1. I'm encountering the following error during SSR rendering:

window is not defined

The error traces back to this line in the source: node_modules/@inertiajs/core/src/eventHandler.ts:21:16

I attempted to debug the issue locally and tried a monkey patch, but the published code is minified, making it difficult to modify or apply any meaningful changes directly.

Would it be possible to investigate this further or publish a non-minified version for easier debugging?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions