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

Problem integrating with angular-cli #15

Open
galvanu opened this issue Nov 14, 2016 · 7 comments
Open

Problem integrating with angular-cli #15

galvanu opened this issue Nov 14, 2016 · 7 comments

Comments

@galvanu
Copy link

galvanu commented Nov 14, 2016

Trying to integrate with the official angular cli but I'm facing the following issue:
cannot find module "adal"

Does anyone succeeded integrating it with angular-cli?

@csmithnic
Copy link

csmithnic commented Dec 29, 2016

I'm having the same issue. I think it's because his directions using system.js include adding adal to the modules loaded, so it exists at runtime. Still trying to figure out how to tell angular cli that it's there.

@ranveeraggarwal
Copy link

+1 same problem. This needs to be done since Angular-CLI is becoming kind of a standard.

@mberaz
Copy link

mberaz commented Mar 13, 2017

i am having the same problem

@csmithnic
Copy link

csmithnic commented Mar 13, 2017

I solved this problem because I have it working now but I can't remember what EXACTLY fixed the issue. My guess, though is that it was solved when I added the adal types to my project.

npm i --save-dev @types/adal

should do the trick.

@babilog
Copy link

babilog commented Mar 31, 2017

@csmithnic , could you please share the scripts that you are loading on angular-cli.json file? I am having the same issue, I've already installed @types/adal and no luck.

@csmithnic
Copy link

csmithnic commented Mar 31, 2017

@babilog I did this again last night and the thing I realized I was missing was adding 'adal' to your list of types in the tsconfig.app.json file (If you're on the latest version of @angular/cli)

So, my tsconfig looks like this

{ "compilerOptions": { "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": [ "es2016", "dom" ], "outDir": "../out-tsc/app", "target": "es5", "module": "es2015", "baseUrl": "", "types": [ "adal" ], "typeRoots": [ "../node_modules/@types" ] }, "exclude": [ "test.ts", "**/*.spec.ts" ] }

this is in addition to installing @types/adal. I also have

"adal-angular": "^1.0.14",

in my package.json dependencies... not sure if it's needed, I haven't checked if that's essential or just left over from experimentation.

Hope this helps!

@babilog
Copy link

babilog commented Apr 5, 2017

@csmithnic , apologies for the late reply, after adding types: ["adal"] issue is now solved! Thanks alot!

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

5 participants