<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008plnnfCAAOkta Classic EngineSingle Sign-OnAnswered2024-03-25T09:51:49.000Z2023-02-20T07:44:00.000Z2023-02-21T16:11:05.000Z

eh6b1 (eh6b1) asked a question.

Unable to compile Angular 8 application with Okta-angular package with “ng build –prod”

We are using okta-angular package version 4.1.1 with Angular 8. It works well in dev environment with "ng serve". But when we are trying to compile application with "ng build --prod", the build is failing with following errors

 

ERROR in Can't resolve all parameters for OktaAuthGuard in /node_modules/@okta/okta-angular/okta-angular.d.ts: ([object Object], ?, [object Object]).

Can't resolve all parameters for OktaAuthStateService in /node_modules/@okta/okta-angular/okta-angular.d.ts: (?).

Can't resolve all parameters for OktaService in /services/okta.service.ts: ([object Object], ?, [object Object], [object Object], [object Object]).

Can't resolve all parameters for AppComponent in /src/app/app.component.ts: ([object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], ?, [object Object], [object Object], [object Object]).

Can't resolve all parameters for OktaCallbackComponent in /node_modules/@okta/okta-angular/okta-angular.d.ts: ([object Object], ?, [object Object]).

Can't resolve all parameters for LoginComponent in /login/login.component.ts: ([object Object], ?, [object Object], [object Object], [object Object], [object Object], [object Object]). 

 


This question is closed.
Loading
Unable to compile Angular 8 application with Okta-angular package with “ng build –prod”