Skip to content

opencv not compatible with vitejs bundler #66

@mojv

Description

@mojv

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

Metadata

Metadata

Assignees

No one assigned

    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