-
Notifications
You must be signed in to change notification settings - Fork 31
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
Okta angular can’t compile with “ng build –prod” #72
Comments
Thanks for report @DavidAaronOrtiz. |
@DavidAaronOrtiz It's probably because of the typescript version from Angular 8 cannot compatible with types in the newly published version. Can you try upgrade the angular version or use older version of okta-angular as a workaround? Also, here is our angular samples repo, I just verified the build script works well there. |
@DavidAaronOrtiz The issue should be fixed in version 4.1.1 Closing this issue, feel free to reopen it if the problem still exist. |
@shuowu Can’t resolve all parameters for OktaCallbackComponent in //node_modules/@okta/okta-angular/okta-angular.d.ts: ([object Object], ?, [object Object]). It's also one of the errors mentioned by @DavidAaronOrtiz so I think this issue is not entirely fixed in version 4.1.1. Can you look into this again, please? |
@shuowu |
Downgrading to 3.2.2 fixed it for now. |
Unfortunately, I had to downgrade to 2.1.0. Still, I would like to use a more recent version, as version 2.1.0 does not work with refresh token mechanisms yet. Any news on a possible fix for this? Thank you. |
@gvdmierop @yamanch123 @DavidAaronOrtiz A fix PR is created here, can you verify against that PR branch to see if the fix works? (The PR is a bit verbose, since we want to create test apps cross different versions to verify the code change.) |
@shuowu , The fix PR seems to be the fix for building with 'ng build --prod' on our Angular 7 app!
Thank you for your help. However, at runtime I still get the same error I also had with version 3.2.2: 'Uncaught TypeError: Super expression must either be null or a function'. Could you help me on with this one? |
The fix went out in v5.0 since it introduces breaking change. Closing this issue, feel free to re-open if you are still seeing the issue in v5. |
I'm submitting a:
Current behavior
Running "ng build --prod" causes the following error:
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 OktaCallbackComponent in //node_modules/@okta/okta-angular/okta-angular.d.ts: ([object Object], ?, [object Object]).
Can’t resolve all parameters for LoginPage in //src/app/pages/login/login.page.ts: ([object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], ?).
Expected behavior
Application will compile correctly
Minimal reproduction of the problem with instructions
Run "ng build --prod"
Extra information about the use case/user story you are trying to implement
"ng serve" compiles. Already added skipLibCheck in the tsconfig.
Environment
"@okta/okta-angular": 4.1.0
"@okta/okta-auth-js": 5.5.0
node -v
): 10.16.3Configuration
The text was updated successfully, but these errors were encountered: