Vonage / vonage-media-transformers-samples

Vonage Media Transformers Examples
MIT License
3 stars 1 forks source link

Error in main.d.ts file cause application build failure #20

Closed nileshpacharane closed 11 months ago

nileshpacharane commented 11 months ago

In Angular 14 application I am trying to use this library version "@vonage/ml-transformers": "^5.0.1", but during application build I got some error inside the "main.d.ts" file. please ref below error

53 import VonageFaceDetection from "./libs/face-detection-helper";


Error: node_modules/@vonage/ml-transformers/dist/types/lib/main.d.ts:72:28 - error TS2307: Cannot find module './libs/face-mash-helper' or its corresponding type declarations.

72 import VonageFaceMash from "./libs/face-mash-helper";

Error: node_modules/@vonage/ml-transformers/dist/types/lib/main.d.ts:94:29 - error TS2307: Cannot find module './libs/objectron-helper' or its corresponding type declarations.

94 import VonageObjectron from "./libs/objectron-helper";


Error: node_modules/@vonage/ml-transformers/dist/types/lib/main.d.ts:108:24 - error TS2307: Cannot find module './libs/pose-helper' or its corresponding type declarations.

108 import VonagePose from "./libs/pose-helper";

Angular Live Development Server is listening on localhost:4202, open your browser on http://localhost:4202/video/agent

× Failed to compile.

main-d-ts-file-error
nileshpacharane commented 11 months ago

This error is coming because the tsconfig.json files compilerOptions is not set to property "skipLibCheck": true