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

@polkadot/types: Could not find a declaration file for module 'rxjs'. #3775

Closed
joelamouche opened this issue Jul 16, 2021 · 4 comments
Closed

Comments

@joelamouche
Copy link
Contributor

node_modules/@polkadot/types/types/index.d.ts:10:33 - error TS7016: Could not find a declaration file for module 'rxjs'. '/Users/antoineestienne/GitHubRepo/moonbeam/moonbeam-types-bundle/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';`

10 export type { Observable } from 'rxjs';
                                   ~~~~~~

When trying to compile moonbeam-types-bundle with the latest @polkadot/types dependancy

@jacogr
Copy link
Member

jacogr commented Jul 16, 2021

This is rxjs related, see ReactiveX/rxjs#6466

@joelamouche
Copy link
Contributor Author

Ok updating typescript (above 4.2) solved the problem
Thanks @jacogr

@jacogr
Copy link
Member

jacogr commented Jul 16, 2021

Was not aware of this since I generally track TS quite closely, but can say that reading the above was a TIL for me, didn't know about typesVersion at all.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants