Skip to content

How to make the web example work with the latest version? #6033

Open
@tqphan

Description

@tqphan

The official example of MediaPipe Face Landmarker Task for web uses version [email protected].

I change the lines
import vision from "https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]";
to
import vision from "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision";
and
FilesetResolver.forVisionTasks("https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/wasm");
to
FilesetResolver.forVisionTasks("https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm");

I'm getting the following error

SyntaxError: The requested module 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision' doesn't provide an export named: 'default'
at https://cdpn.io/cpe/boomboom/pen.js?key=pen.js-d22e87b6-4d74-9260-6121-ad4e77e61b10:11

How can I make the example work with the latest release?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions