You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
// invariant.ts/** * Check that the value is truthy, otherwise throw an error with the message * @param value The value to check * @param message The error message */exportfunctioninvariant(value: unknown,message: string): asserts value{if(value){return;}throwError(message);}
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:
The text was updated successfully, but these errors were encountered: