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
Transitive deps get the following error on tsc -b, e.g. kmc-package depends on common-types which depends on restructure:
../../../node_modules/@keymanapp/common-types/src/kmx/kmx.ts:1:20 - error TS7016: Could not find a declaration file for module 'restructure'. 'C:/Projects/keyman/app/node_modules/restructure/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/restructure` if it exists or add a new declaration (.d.ts) file containing `declare module 'restructure';`
1 import * as r from 'restructure';
~~~~~~~~~~~~~
../../../node_modules/@keymanapp/common-types/src/kmx/kmx-file-reader.ts:2:20 - error TS7016: Could not find a declaration file for module 'restructure'. 'C:/Projects/keyman/app/node_modules/restructure/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/restructure` if it exists or add a new declaration (.d.ts) file containing `declare module 'restructure';`
2 import * as r from 'restructure';
~~~~~~~~~~~~~
Discussed at microsoft/TypeScript#50223, fix is to add the appropriate types to exports key in package.json for restructure, something like this:
Transitive deps get the following error on
tsc -b
, e.g. kmc-package depends on common-types which depends on restructure:Discussed at microsoft/TypeScript#50223, fix is to add the appropriate types to exports key in package.json for restructure, something like this:
The text was updated successfully, but these errors were encountered: