
eh6b1 (eh6b1) asked a question.
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]).

Hi, @eh6b1 (eh6b1)
I did some research and found this article on the Dev Forum:
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
_____________________________________________________________________________
Community members help others by clicking Like or Select as Best on responses. Try it today.
_____________________________________________________________________________