brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.51k stars 527 forks source link

webgazer runtime error #307

Closed RuidongLiu closed 1 year ago

RuidongLiu commented 1 year ago

install webgazer 3.1.2 using npm for a typescript project.

import webgaze from 'webgazer';

but having at runtime error

Uncaught TypeError: Cannot read properties of undefined (reading 'mediapipeFacemesh')
at new TFFaceMesh (facemesh.mjs:11:1)
jeffhuang commented 1 year ago

Might be a typo?: webgaze

Or this? https://github.com/brownhci/WebGazer/issues/304

RuidongLiu commented 1 year ago

nvm, need to configure webpack for .mjs files.