alenny / angular2-adal-example

MIT License
22 stars 10 forks source link

TypeScript error "Cannot resolve module 'adal'". #6

Open henrydaehnke opened 8 years ago

henrydaehnke commented 8 years ago

I'm using TypeScript version 1.8.10 and trying to compile the example project, but I get the following error

Module not found: Error: Cannot resolve module 'adal' in C:\Projects\AzureAD\WebAppsCh5\WebAppsCh5Angular2\node_modules\angular2-adal\services @ ./~/angular2-adal/services/adal.service.js 20:14-29

I added the "adal" reference to the typings.json file suggested in another issue:

"adal": "github:DefinitelyTyped/DefinitelyTyped/adal-angular/adal.d.ts#53347571e6f44ed9a961b569bb81893fde4789c1",

Unfortunately, that didn't fix the error either. Do I need to npm install the ADAL.js package?

avranju commented 8 years ago

After running the following it appears to build:

typings install --save --global --source dt adal-angular/adal
maxshilov commented 7 years ago

@avranju Unfortunately, "typings install ..." doesn't help. The error remains the same.