Skip to content

Conversation

@bobbor
Copy link

@bobbor bobbor commented Jan 8, 2026

When using face_detection, the final rollup output generates an esm build with imports @mediapipe/face_detection the following way:

import{FaceDetection as e}from"@mediapipe/face_detection"

this breaks when using it with NEXT.js and Typescript 5.

with the following message:

The export FaceDetection was not found in module [project]/node_modules/@mediapipe/face_detection/face_detection.js [ssr] (ecmascript).
The module has no exports at all.

the suggested change adjusts the generated import statement (and usage of FaceDetection class)

import e from"@mediapipe/face_detection"

@google-cla
Copy link

google-cla bot commented Jan 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant