Skip to content

Uncaught Error: Invariant failed #202

@dylan-jaris

Description

@dylan-jaris

In our remix-vite project, we use GH actions to run a few steps during the build process. Specifically during a testing step, which uses playwright, we're seeing this error: Uncaught Error: Invariant failed. But when viewing tiny-invariant.ts I'm seeing that the error messages are stripped when in production mode so how am I supposed to be able to tell which invariant is throwing this error? When I run the tests locally I'm not seeing any invariant errors - only during the build towards production. Is there a way to enable these messages in production?

deps:

"tiny-invariant": "^1.3.3"
"@playwright/test": "1.46.1",
"@remix-run/node": "^2.11.2",
"@remix-run/react": "^2.11.2",
"@remix-run/serve": "^2.11.2"

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