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

Cannot find module 'angular' on 'tsc' #19

Closed
3du4 opened this issue Sep 29, 2016 · 2 comments
Closed

Cannot find module 'angular' on 'tsc' #19

3du4 opened this issue Sep 29, 2016 · 2 comments

Comments

@3du4
Copy link

3du4 commented Sep 29, 2016

when I run the 'tsc' command I get this error:

node_modules/ui-router-ng1-to-ng2/ng1-to-ng2.d.ts(1,26): error TS2307: Cannot find module 'angular'

typings version: 1.4.0
my typings.json file looks like this:

{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160914114559",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"node": "registry:dt/node#6.0.0+20160928143418"
}
}

�What is the proper way of including this library into an Angular project? I see it is constantly updated and it is now on 2.0.1. Does the typings.json matter ?

Any help would be greatly appreciated.

@3du4
Copy link
Author

3du4 commented Oct 3, 2016

updating typing definitions solved this issue.

@3du4 3du4 closed this as completed Oct 3, 2016
@christopherthielen
Copy link
Member

For reference:

With typings utility, you can use typings install --save dt~angular

With Typescript 2.0 and later you can simply npm install @types/angular

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

No branches or pull requests

2 participants