rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

const [faces, setFaces] = React.useState<Face[]>([]); Unexpected token (34:48) #41

Open zenzero3 opened 1 year ago

zenzero3 commented 1 year ago

can anyone fix this problem i just install face detector by documentation but if i run my project , i get error ERROR [Error: TransformError SyntaxError: /Users/user/splash-1/src/scenes/Absensi.js: Unexpected token (34:48)

34 | const [faces, setFaces] = React.useState<Face[]>([]);

ekkam04 commented 11 months ago

I had the same issue. I fixed it by changing my file format from .js to .tsx