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

Import error in background_segmenter tutorial #465

Open
benbro opened this issue Sep 26, 2024 · 0 comments
Open

Import error in background_segmenter tutorial #465

benbro opened this issue Sep 26, 2024 · 0 comments

Comments

@benbro
Copy link

benbro commented Sep 26, 2024

Uncaught SyntaxError: The requested module 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision' does not provide an export named 'default' (at index.js:2:8)

Fix:

import * as vision from "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision";

https://github.com/google-ai-edge/mediapipe-samples/blob/main/tutorials/background_segmenter/code/index.js#L2

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

No branches or pull requests

1 participant