Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve 'Cannot find module scheduler/tracing' TypeScript Error #1119

Open
hassanpdn opened this issue Jul 14, 2024 · 2 comments
Open

Resolve 'Cannot find module scheduler/tracing' TypeScript Error #1119

hassanpdn opened this issue Jul 14, 2024 · 2 comments

Comments

@hassanpdn
Copy link

hassanpdn commented Jul 14, 2024

We are encountering a TypeScript error when trying to compile the project using yarn dev-hello-ts. The error message is as follows:

../../node_modules/@types/react/index.d.ts:41:53 - error TS2307: Cannot find module 'scheduler/tracing' or its corresponding type declarations.

41 import { Interaction as SchedulerInteraction } from "scheduler/tracing";

Steps to Reproduce:

  • Clone the repository and navigate to the project directory.
  • Run yarn install.
  • cd packages
  • Run yarn dev-hello-ts
@AshwinRamesh
Copy link

I am also getting this issue with same reproducible steps. Does anyone have a fix?

@boywhoroared
Copy link

boywhoroared commented Jan 8, 2025

I was able to work around this by removing override for @types/react in the root package.json, removing node_modules and reinstalling the packages.

--- i/package.json
+++ w/package.json
@@ -38,7 +38,7 @@
     "test-dtslint": "yarn workspaces foreach -vpi run test-dtslint"
   },
   "resolutions": {
-    "@types/eslint": "8.44.3",
-    "@types/react": "18.2.28"
-  }
+    "@types/eslint": "8.44.3"
+  }
 }

The override was added when someone in the workshop ran into an issue. Based on the video, the override wasn't necessary for everyone but was added to the project just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants