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
typecheck should not emit errors tied to virtual:react-router/server-build and react-router in +virtual.ts file
it passes when exactOptionalPropertyTypes is enabled like it's mentioned here but then a lot of different errors pop up throughout the codebase because of exactOptionalPropertyTypes
Actual Behavior
typecheck on v7.4.0 produces these two errors:
.react-router/types/+virtual.ts:1:16 - error TS2664: Invalid module name in augmentation, module 'virtual:react-router/server-build' cannot be found.
declare module "virtual:react-router/server-build" {
.react-router/types/+virtual.ts:2:31 - error TS2307: Cannot find module 'react-router' or its corresponding type declarations.
import { ServerBuild } from "react-router";
The text was updated successfully, but these errors were encountered:
We just published version 7.4.1-pre.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
I'm using React Router as a...
framework
Reproduction
stackblitz
System Info
Used Package Manager
pnpm
Expected Behavior
typecheck should not emit errors tied to
virtual:react-router/server-build
andreact-router
in+virtual.ts
fileit passes when
exactOptionalPropertyTypes
is enabled like it's mentioned here but then a lot of different errors pop up throughout the codebase because ofexactOptionalPropertyTypes
Actual Behavior
typecheck on v7.4.0 produces these two errors:
The text was updated successfully, but these errors were encountered: