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
Current Behavior
Installed rxjs into my TypeScript project. Tried using rxjs but the TypeScript compiler gave me an error message saying
Could not find a declaration file for module 'rxjs'.
'D:/myWork/node_modules/rxjs/dist/cjs/index.js' implicitly has an 'any'
type.Try npm i --save-dev @types/rxjs if it exists or add a new declaration (.d.ts) file containing declare module 'rxjs';
Expected behavior
TypeScript should be able to find the types defined inside the rxjs project.
Environment
RxJS version: 7.3.0
TypeScript v4.4.3
npm v7.18.1
node v14.15.3
Possible Solution
I had a look in rxjs's package.json file and I see "types": "index.d.ts"
This is incorrect. If I change this line to the following then everything starts working again.
"types": "./dist/types/index.d.ts"
I don't know why the "typesVersions" settings don't work.
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behavior
Installed rxjs into my TypeScript project. Tried using rxjs but the TypeScript compiler gave me an error message saying
Could not find a declaration file for module 'rxjs'.
'D:/myWork/node_modules/rxjs/dist/cjs/index.js' implicitly has an 'any'
type.Try
npm i --save-dev @types/rxjs
if it exists or add a new declaration (.d.ts) file containingdeclare module 'rxjs';
Expected behavior
TypeScript should be able to find the types defined inside the rxjs project.
Environment
Possible Solution
I had a look in rxjs's package.json file and I see
"types": "index.d.ts"
This is incorrect. If I change this line to the following then everything starts working again.
"types": "./dist/types/index.d.ts"
I don't know why the "typesVersions" settings don't work.
The text was updated successfully, but these errors were encountered: