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
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Adding the noImplicitAny compiler option for TypeScript causes the dialog component to break:
typescript: node_modules/@angular-mdc/web/dialog/dialog.component.d.ts, line: 3
Could not find a declaration file for module 'focus-trap'.
'[path-to-project]/node_modules/focus-trap/index.js' implicitly has an 'any' type. Try `npm
install @types/focus-trap` if it exists or add a new declaration (.d.ts) file containing `declare module
'focus-trap';`
The issue is discussed here and here, so if anybody else runs across this problem, add the following to some global .d.ts file:
declare module 'focus-trap';
It would be great if we could fix this within angular-mdc itself, but nothing I have tried so far has been successful at doing that. I may also file something against focus-trap in case it can be done upstream there.
The text was updated successfully, but these errors were encountered:
Adding the
noImplicitAny
compiler option for TypeScript causes the dialog component to break:The issue is discussed here and here, so if anybody else runs across this problem, add the following to some global .d.ts file:
It would be great if we could fix this within angular-mdc itself, but nothing I have tried so far has been successful at doing that. I may also file something against focus-trap in case it can be done upstream there.
The text was updated successfully, but these errors were encountered: