I have @types/adal in my package.json and everything works fine on my Mac, but in Windows I get the following errors:
> ionic-app-scripts serve
[11:25:01] ionic-app-scripts 0.0.43
[11:25:02] watch started ...
[11:25:02] build dev started ...
[11:25:02] clean started ...
[11:25:02] clean finished in less than 1 ms
[11:25:02] copy started ...
[11:25:02] transpile started ...
[11:25:11] typescript: C:/Users/mike/ClientApp/node_modules/ng2-adal/services/adal.service.d.ts, line: 14
Cannot find namespace 'adal'.
L13: logOut(): void;
L14: handleWindowCallback(): void;
L15: getCachedToken(resource: string): string;
[11:25:11] typescript: C:/Users/mike/ClientApp/node_modules/ng2-adal/services/adal.service.d.ts, line: 15
Cannot find namespace 'adal'.
L14: handleWindowCallback(): void;
L15: getCachedToken(resource: string): string;
L16: acquireToken(resource: string): Observable<{}>;
[11:25:11] typescript: C:/Users/mike/ClientApp/node_modules/ng2-adal/services/adal.service.d.ts, line: 23
Cannot find namespace 'adal'.
L22: GetResourceForEndpoint(url: string): string;
L23: private updateDataFromCache(resource);
[11:25:11] transpile failed
[11:25:11] copy finished in 9.39 s
[11:25:11] watch ready in 9.52 s
[11:25:11] dev server running: http://localhost:8100/
I have an alias in my webpack.config.js:
resolve: {
extensions: ['.min.js','.js', '.ts', '.json'],
alias: { 'adal': 'adal-angular' }
},
But I don’t think it has anything to do with it. We have tried everything here to figure this out and I am still looking. I hope someone here can lead me in the right direction.
Thanks!!