# Okta Sign-In Widget and Angular Error

**URL:** <https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019>\
**Category:** Questions\
**Created:** [June 20, 2022, 2:40am UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019 "2022-06-20T02:40:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommypang04](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tommypang04](https://devforum.okta.com/u/tommypang04)\
**Post date:** [June 20, 2022, 2:40am UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019/1 "2022-06-20T02:40:51Z")

</div>

I’m following the official documentation about [integrating authentication into an Angular application with Okta](https://developer.okta.com/code/angular/okta_angular_sign-in_widget/). However, when I run the application using ng-serve, it failed to compile.

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/9/9da861c6451b24381cc5234a35cdebfcc73b52be.png)  
Below is my versions  
 ![image](https://global.discourse-cdn.com/oktadev/original/2X/5/57e7d285327d07683781277f307c5e9048d938f5.png)  
When I preview the dependency files it shows this:  
 ![image](https://global.discourse-cdn.com/oktadev/original/2X/9/92f64b97b21a6c1d4495b677d87a99ec31223ceb.png)  
Is there any way to solve this? 🥲

---

<div class="post-metadata">

**Author:** ![tommypang04](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tommypang04](https://devforum.okta.com/u/tommypang04)\
**Post date:** [June 20, 2022, 1:49pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019/2 "2022-06-20T13:49:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alisaduncan](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/alisaduncan/32/3429_2.png) [@alisaduncan](https://devforum.okta.com/u/alisaduncan)\
**Post date:** [June 20, 2022, 3:21pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019/3 "2022-06-20T15:21:58Z")

</div>

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:

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

```

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

> **[samples-js-angular/custom-login at master · okta/samples-js-angular](https://github.com/okta/samples-js-angular/tree/master/custom-login)**
>
> master/custom-login

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

> **[GitHub - okta-samples/okta-angular-sample at widget](https://github.com/okta-samples/okta-angular-sample/tree/widget)**
>
> widget

---

<div class="post-metadata">

**Author:** ![tommypang04](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tommypang04](https://devforum.okta.com/u/tommypang04)\
**Post date:** [June 20, 2022, 10:27pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019/4 "2022-06-20T22:27:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 9:13pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-and-angular-error/21019/5 "2024-02-12T21:13:32Z")

</div>

Closed on February 12, 2024, 9:13pm UTC


