Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

011_googlemeet-segmentation-worker-js typescript error #39

Closed
ArtemOstapov opened this issue May 25, 2021 · 4 comments
Closed

011_googlemeet-segmentation-worker-js typescript error #39

ArtemOstapov opened this issue May 25, 2021 · 4 comments

Comments

@ArtemOstapov
Copy link

Doing everything with Readme I got the next typescript error:

google-segmentation-demo/src/App.tsx(39,66):
Argument of type 'number[][] | null' is not assignable to parameter of type 'number[][][]'.
  Type 'null' is not assignable to type 'number[][][]'.  TS2345

If I skip it with // @ts-nocheck, then I got the next error:

googlemeet-segmentation-worker.ts:276 Uncaught (in promise) TypeError: Cannot read property '0' of null
    at createForegroundImage (VM18322 googlemeet-segmentation-worker.ts:276)

set config.processOnLocal = true
that fixes previous error, but dstCanvas is white...

I think something is outdated

@w-okada
Copy link
Owner

w-okada commented May 25, 2021

I can not reproduce your problem.
If you use "011demo_googlemeet-segmentation-worker-js-demo", please update(git pull) and rerun.

@ArtemOstapov
Copy link
Author

I can not reproduce your problem.
If you use "011demo_googlemeet-segmentation-worker-js-demo", please update(git pull) and rerun.

tnx for the quick answer,
i'm talking about 011_googlemeet-segmentation-worker-js,
not 011demo_googlemeet-segmentation-worker-js-demo

@w-okada
Copy link
Owner

w-okada commented May 26, 2021

OK, I fixed the readme.

@ArtemOstapov
Copy link
Author

OK, I fixed the readme.

big tnx! now it is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants