Good day!
When trying to link ng2-translate to my TypeScript-application an errors rises in Microsoft VisualStudio2015:
TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. \node_modules\rxjs\add\observable\of.d.ts 2
TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. \node_modules\rxjs\add\observable\map.d.ts 2
TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. \node_modules\rxjs\add\observable\merge.d.ts 2
TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. \node_modules\rxjs\add\observable\share.d.ts 2
TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. \node_modules\rxjs\add\observable\toArray.d.ts 2
I use Typescript 1.8, ng2-translate 1.11.0, angular 2.0.0-beta.13
Help please!
Hello, check the version of RxJS that you use, is it beta 2 ?
I use rxjs 5.0.0-beta.4
Ok, that's the problem, Angular 2 has a dependency for beta 2, fix the version to that and it should be ok.
It works well with beta2.
Thank you very much!
No problem :)
This has popped back up. I noticed beta 17 asking for [email protected].
npm ERR! peerinvalid Peer [email protected] wants [email protected]
And when I upgraded, I received this same error.
Well I removed the peer dependency to RxJS from ng2-translate (I required angular 2 which require RxJS), so this problem is not on this lib.
@Phatsuo Did you solve this problem. I am having the same. It is not related to ng2-translate.
Most helpful comment
This has popped back up. I noticed beta 17 asking for [email protected].
npm ERR! peerinvalid Peer [email protected] wants [email protected]
And when I upgraded, I received this same error.