Could not find a declaration file for module @okta/okta-signin-widget
mpitsenberger opened this issue · 4 comments
mpitsenberger commented
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
shuowu commented
@mpitsenberger The current @okta/okta-signin-widget module is not providing types. Can you set a loose type rule to bypass the type errors?
mpitsenberger commented
Thanks we were able resolve the issue
sislex commented
how do you solve it?
mraible commented
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