ysndr opened a new issue #96: URL: https://github.com/apache/incubator-annotator/issues/96
Hej I'm currently packaging this library for the nix ecosystem under the NGI0 project. I have a weird issue I can't really tell for where it comes from. When running `yarn build` the typescript compile step might fail, if it fails then only `yarn clean` helps. Outside of the nix build process i cannot reproduce the issue reliably. The error I get is: ``` build:lib:types] packages/dom/src/css.ts(21,43): error TS7016: Could not find a declaration file for module '@annotator/selector'. '/Volumes/projects/git/apache-annotator/lib/incubator-annotator/node_modules/@annotator/selector/lib/index.js' implicitly has an 'any' type. [build:lib:types] Try `npm install @types/annotator__selector` if it exists or add a new declaration (.d.ts) file containing `declare module '@annotator/selector';` [build:lib:types] packages/dom/src/css.ts(27,35): error TS7006: Parameter 'scope' implicitly has an 'any' type. [build:lib:types] packages/dom/src/range/match.ts(21,55): error TS7016: Could not find a declaration file for module '@annotator/selector'. '/Volumes/projects/git/apache-annotator/lib/incubator-annotator/node_modules/@annotator/selector/lib/index.js' implicitly has an 'any' type. [build:lib:types] Try `npm install @types/annotator__selector` if it exists or add a new declaration (.d.ts) file containing `declare module '@annotator/selector';` [build:lib:types] packages/dom/src/range/match.ts(32,37): error TS7006: Parameter 'scope' implicitly has an 'any' type. [build:lib:types] packages/dom/src/range/match.ts(41,25): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(41,47): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(42,23): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(42,43): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/text-quote/describe.ts(22,40): error TS7016: Could not find a declaration file for module '@annotator/selector'. '/Volumes/projects/git/apache-annotator/lib/incubator-annotator/node_modules/@annotator/selector/lib/index.js' implicitly has an 'any' type. [build:lib:types] Try `npm install @types/annotator__selector` if it exists or add a new declaration (.d.ts) file containing `declare module '@annotator/selector';` [build:lib:types] packages/dom/src/text-quote/match.ts(22,49): error TS7016: Could not find a declaration file for module '@annotator/selector'. '/Volumes/projects/git/apache-annotator/lib/incubator-annotator/node_modules/@annotator/selector/lib/index.js' implicitly has an 'any' type. [build:lib:types] Try `npm install @types/annotator__selector` if it exists or add a new declaration (.d.ts) file containing `declare module '@annotator/selector';` [build:lib:types] packages/dom/src/text-quote/match.ts(28,35): error TS7006: Parameter 'scope' implicitly has an 'any' type. ``` In nix its a bit shorter but essentially the same error: ``` [build:lib:types] packages/dom/src/css.ts(21,43): error TS2307: Cannot find module '@annotator/selector' or its corresponding type declarations. [build:lib:types] packages/dom/src/css.ts(27,35): error TS7006: Parameter 'scope' implicitly has an 'any' type. [build:lib:types] packages/dom/src/range/match.ts(21,55): error TS2307: Cannot find module '@annotator/selector' or its corresponding type declarations. [build:lib:types] packages/dom/src/range/match.ts(32,37): error TS7006: Parameter 'scope' implicitly has an 'any' type. [build:lib:types] packages/dom/src/range/match.ts(41,25): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(41,47): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(42,23): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/range/match.ts(42,43): error TS2571: Object is of type 'unknown'. [build:lib:types] packages/dom/src/text-quote/describe.ts(22,40): error TS2307: Cannot find module '@annotator/selector' or its corresponding type declarations. [build:lib:types] packages/dom/src/text-quote/match.ts(22,49): error TS2307: Cannot find module '@annotator/selector' or its corresponding type declarations. [build:lib:types] packages/dom/src/text-quote/match.ts(28,35): error TS7006: Parameter 'scope' implicitly has an 'any' type. [build:lib:types] error Command failed with exit code 2. ``` Is there something I am missing? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org