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

Module not found: Can't resolve '@mediapipe/face_mesh' #1946

Closed
ben-xD opened this issue Apr 28, 2021 · 2 comments
Closed

Module not found: Can't resolve '@mediapipe/face_mesh' #1946

ben-xD opened this issue Apr 28, 2021 · 2 comments
Assignees
Labels
legacy:face mesh Issues related to Face Mesh platform:javascript MediaPipe Javascript issues type:support General questions

Comments

@ben-xD
Copy link

ben-xD commented Apr 28, 2021

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 the localhost: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.

@ben-xD
Copy link
Author

ben-xD commented Apr 28, 2021

I think @mhays-google will know the most about this, since he is the author of this project, according to package.json

@ben-xD
Copy link
Author

ben-xD commented Apr 28, 2021

Fixed with import {FaceMesh, InputMap, NormalizedLandmark} from "@mediapipe/face_mesh/face_mesh";

@ben-xD ben-xD closed this as completed Apr 28, 2021
@sgowroji sgowroji self-assigned this Apr 29, 2021
@sgowroji sgowroji added platform:javascript MediaPipe Javascript issues legacy:face mesh Issues related to Face Mesh type:support General questions labels Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face mesh Issues related to Face Mesh platform:javascript MediaPipe Javascript issues type:support General questions
Projects
None yet
Development

No branches or pull requests

2 participants