Okta Sign-In Widget and Angular Error

I’m following the official documentation about integrating authentication into an Angular application with Okta. However, when I run the application using ng-serve, it failed to compile.


Below is my versions
image
When I preview the dependency files it shows this:

Is there any way to solve this? :smiling_face_with_tear:

Update: I put “skipLibCheck”: true in tsconfig.json file and issue was temporally solved

What versions of Okta Sign-In Widget and Okta Auth JS libs are you using?

Before @okta/okta-signin-widget@6.3.3, the library didn’t include typings so you’d have to declare it in a typings file (such as index.d.ts in the src directory) like this:

declare module '@okta/okta-signin-widget';

If it helps, here’s a link to the sample repo using the latest versions of the libraries.

Sometimes it helps to have another example, so here’s another one with updated versions.

I think for @okta/okta-signin-widget it’s 6.4.2, and for @okta/okta-auth-js it’s 6.6.2. Thanks for the sample repos