Core: "Invalid module name in augmentation" errors with VS2015

Created on 3 Apr 2016  路  9Comments  路  Source: ngx-translate/core

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!

invalid

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.

All 9 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pndewit picture pndewit  路  3Comments

louisdoe picture louisdoe  路  3Comments

crebuh picture crebuh  路  3Comments

madoublet picture madoublet  路  3Comments

ryanki1 picture ryanki1  路  4Comments