-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Codesandbox: Cannot find module 'rxjs' or its corresponding type declarations.ts(2307) #6530
Comments
not sure why changing versions a few times removed the errors. not reproducible. |
I got the same error even due the {
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"paths": {
"@src/*": ["src/*"]
}
}
} Where I am importing the rxjs version: 7.2.0 Solution:update your version to |
I got the same error with |
+1 |
Bug Report
I can see a couple of threads related to this but none of them solve it and they are also closed. This refers specifically to version 7.2.0 I cant import rxjs module in a very basic example. Ive tried changing versions to 6.6.3 but then i can import rxjs/operators. The import system appears to be a unstable and possibly not backward compatible.
Current Behavior
version 7.2
results in an error:
changing to version 6.6.3 fixes the above error and produces the same error for rxjs/operators
Expected behavior
should not be an error
Reproduction
https://codesandbox.io/s/redux-hooks-observables-uxyvq?file=/src/Epics/epics.ts:0-32
Environment
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: