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

opencv not compatible with vitejs bundler #66

Open
mojv opened this issue Nov 13, 2021 · 0 comments
Open

opencv not compatible with vitejs bundler #66

mojv opened this issue Nov 13, 2021 · 0 comments

Comments

@mojv
Copy link

mojv commented Nov 13, 2021

Would be great if you guys make opencv.js compatible with vitejs (which is insanely fast).

I just created a blank project and just try to add it in the main.js file like so:

// src/main.js
import { createApp, reactive } from 'vue'
import App from './App.vue'
import * as cv from 'opencv.js'

const app = createApp(App);
app.config.globalProperties.$cv = cv; 

app.mount('#app');

browser shows this error:

image
image

thanks a lot

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