okta/okta-angular

Could not find a declaration file for module @okta/okta-signin-widget

mpitsenberger opened this issue · 4 comments

I'm submitting a:

  • Bug report: Could not find a declaration file for module @okta/okta-signin-widget

Current behavior

We are unable to use the OKTA sign in widget in our angular application

Expected behavior

The okta sign widget loads correctly in our angular application

Minimal reproduction of the problem with instructions

[Sending Screen Shots]

Extra information about the use case/user story you are trying to implement

[Sending Screen Shots]

Environment

  • Package version: 5.10.0
  • Angular version: 12.0.0
  • Browser: Chrome
  • OS: Windows
  • Node version (node -v): 16.8.0
  • Other:

Configuration

  • Okta application type: OAUTH2.0
    OKTA Screen Shot 2
    OKTA Screen Shot 3
    OKTA Screen Shot 1

@mpitsenberger The current @okta/okta-signin-widget module is not providing types. Can you set a loose type rule to bypass the type errors?

Thanks we were able resolve the issue

how do you solve it?

Create a src/typings.d.ts file with the following:

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

https://github.com/okta-samples/okta-angular-sample/blob/main/src/typings.d.ts