Unable to build with Webpack after importing Mediapipe (Module parse failed: Unexpected token) #5296
Labels
os:windows
MediaPipe issues on Windows
platform:javascript
MediaPipe Javascript issues
stat:awaiting googler
Waiting for Google Engineer's Response
task::all
All tasks of MediaPipe
type:build/install
For Build and Installation issues
OS Platform and Distribution
Windows 11
Compiler version
No response
Programming Language and version
TypeScript 5.4.3
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
0.10.12
Bazel version
No response
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
We are trying to leverage the mediapipe library in our application. No issues when installing mediapipe, no issues when importing various values from mediapipe and using it in a file, no issues importing that file to a different file, but things go south when calling a function from that file. We have a number of build scripts for this project one of which uses Webpack (version 5.91.0). When running the Webpack related script we end up with a failed build that states
Module parse failed: Unexpected token
from thevision_bundle.mjs
file from mediapipe pointing to 855:53. I've seen a few other posts online where someone ran into the same issue (not with mediapipe but in general) but their solutions do not work for me. Wondering if this was seen before or if there is a concrete solution for this. Thank you in advance and I apologize if this is the wrong issue type.Complete Logs
The text was updated successfully, but these errors were encountered: