You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create an Angular 11 app in strict-mode, importing the Sign-In Widget doesn't work.
Error: src/app/login/login.component.ts:6:24 - error TS7016: Could not find a declaration file for module '@okta/okta-signin-widget'. '/Users/mraible/AngularCalculator/node_modules/@okta/okta-signin-widget/dist/js/okta-sign-in.entry.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/okta__okta-signin-widget` if it exists or add a new declaration (.d.ts) file containing `declare module '@okta/okta-signin-widget';`
6 import OktaSignIn from '@okta/okta-signin-widget';
~~~~~~~~~~~~~~~~~~~~~~~~~~
If I create a src/sign-in-widget.d.ts file with the following contents, it works.
declare module '@okta/okta-signin-widget';
I'm creating this issue so we can document this problem in the README. Or better yet, fix it!
The text was updated successfully, but these errors were encountered:
Thanks for submitting this issue.
PR for adding declaration file for okta-signin-widget is under review, will be available soon. okta/okta-signin-widget#1740
When I create an Angular 11 app in strict-mode, importing the Sign-In Widget doesn't work.
If I create a
src/sign-in-widget.d.ts
file with the following contents, it works.I'm creating this issue so we can document this problem in the README. Or better yet, fix it!
The text was updated successfully, but these errors were encountered: