benbaran / adal-angular4

Angular 4/5/6/7 ADAL Wrapper
MIT License
86 stars 104 forks source link

ng build --prod error #7

Closed LastTribunal closed 7 years ago

briandunz commented 7 years ago

@LastTribunal I think this is caused by the adal-angular4 having its own node_modules folder, causing a conflict. Through some googling, I got around this by pointing all angular references to one place in the tsconfig.json file in the root of the project.

...
"paths": {
            "@angular/common": ["../node_modules/@angular/common"],
            "@angular/compiler": ["../node_modules/@angular/compiler"],
            "@angular/core": ["../node_modules/@angular/core"],
            "@angular/forms": ["../node_modules/@angular/forms"],
            "@angular/platform-browser": ["../node_modules/@angular/platform-browser"],
            "@angular/platform-browser-dynamic": ["../node_modules/@angular/platform-browser-dynamic"],
            "@angular/router": ["../node_modules/@angular/router"],
            "@angular/http": ["../node_modules/@angular/http"],
            "rxjs/Observable": ["../node_modules/rxjs/Observable"]
        }
LastTribunal commented 7 years ago

So the fix should be that this library should not be pullable with and depend on local node_modules

karuppasamy20 commented 6 years ago

same issue but is not solve..