Skip to content

"Invalid module name in augmentation" errors with VS2015 #81

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

Closed
DustinByfuglien opened this issue Apr 3, 2016 · 9 comments
Closed

"Invalid module name in augmentation" errors with VS2015 #81

DustinByfuglien opened this issue Apr 3, 2016 · 9 comments

Comments

@DustinByfuglien
Copy link

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!

@ocombe
Copy link
Member

ocombe commented Apr 3, 2016

Hello, check the version of RxJS that you use, is it beta 2 ?

@DustinByfuglien
Copy link
Author

I use rxjs 5.0.0-beta.4

@ocombe
Copy link
Member

ocombe commented Apr 3, 2016

Ok, that's the problem, Angular 2 has a dependency for beta 2, fix the version to that and it should be ok.

@DustinByfuglien
Copy link
Author

It works well with beta2.

Thank you very much!

@ocombe
Copy link
Member

ocombe commented Apr 3, 2016

No problem :)

@Phatsuo
Copy link

Phatsuo commented May 1, 2016

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.

@ocombe
Copy link
Member

ocombe commented May 1, 2016

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.

@IsaacBorrero
Copy link

@Phatsuo Did you solve this problem. I am having the same. It is not related to ng2-translate.

@VahidN
Copy link

VahidN commented May 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants