Module not found: Can't resolve '@mediapipe/face_mesh' #1946
Labels
legacy:face mesh
Issues related to Face Mesh
platform:javascript
MediaPipe Javascript issues
type:support
General questions
I am using NextJS/ React to use the face_mesh library, and unfortunately when building, the application crashes with
Module not found: Can't resolve '@mediapipe/face_mesh'
. Note: The error doesn't happen immedaitely, because the build process only happens when you visit thelocalhost:3000/video-room
because the pages are lazily built in NextJS's debug mode.I had previously gotten the face mesh to work using the
@tensorflow-models/face-landmarks-detection
, npm package, github but wanted to get more familiar with MediaPipe as well as work around some bugs I think I found in that library.Unfortunately, after writing my code, I get this basic error which I don't know how to fix:
./public/ts/FaceMeshCalculator.ts:1:0 Module not found: Can't resolve '@mediapipe/face_mesh'
You can find my code in
FaceMeshCalculator
in my github repo, which includes the package.json too.The text was updated successfully, but these errors were encountered: