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

Compile errors in useFaceLandmarkDetection.tsx and useMainStore.ts #19

Open
SystemR opened this issue Oct 10, 2024 · 0 comments
Open

Compile errors in useFaceLandmarkDetection.tsx and useMainStore.ts #19

SystemR opened this issue Oct 10, 2024 · 0 comments

Comments

@SystemR
Copy link

SystemR commented Oct 10, 2024

Hello, I got the following errors when trying to compile the client:

<useFaceLandmarkDetection.tsx" 484L, 17192B           315,26        66%
  const canvasRefCallback = useCallback((node: HTMLCanvasElement | null)ign to 'current' because it is a read-only property.

315       canvasRef['current'] = node;
                    ~~~~~~~~~

src/hooks/useMainStore.ts:144:28 - error TS7053: Element implicitly has an 'any' type because expression of type '"u"' can't be used to index type '{ i: string; } & { c: number[]; s: number; b: number[][]; a: number; }'.
  Property 'u' does not exist on type '{ i: string; } & { c: number[]; s: number; b: number[][]; a: number; }'.

144       setOriginalImageUuid(params.loaded['u'])
                               ~~~~~~~~~~~~~~~~~~


Found 2 errors in 2 files.

Errors  Files
     1  src/hooks/useFaceLandmarkDetection.tsx:315
     1  src/hooks/useMainStore.ts:144

I added @ts-ignore for now on my side.

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

1 participant