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

"fs" dependency causing compiling error #59

Open
chiboreache opened this issue Jun 10, 2019 · 3 comments
Open

"fs" dependency causing compiling error #59

chiboreache opened this issue Jun 10, 2019 · 3 comments

Comments

@chiboreache
Copy link

System information (version)
  • OpenCV.js => 1.2.1
  • Operating System / Platform => Arch Linux
Steps to reproduce

Just added one line of code
cv = require('opencv.js')
in script section of my Nuxt.js project and got that error

Screenshot_20190610_173317


in new plain simple Vue project I've got

App.vue?234e:10 Uncaught ReferenceError: cv is not defined
    at eval (App.vue?234e:10)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js& (app.js:1336)
    at __webpack_require__ (app.js:724)
    at fn (app.js:101)
    at eval (App.vue?8b47:1)
    at Module../src/App.vue?vue&type=script&lang=js& (app.js:3110)
    at __webpack_require__ (app.js:724)
    at fn (app.js:101)
    at eval (App.vue?a938:1)
    at Module../src/App.vue (app.js:3098)
@Avaroth
Copy link

Avaroth commented Dec 27, 2019

Have you found a solution for this? Same happens to me.

@chiboreache
Copy link
Author

chiboreache commented Jan 9, 2020

@Avaroth
i thought you asking about opencv lol

nah, i just get rid of it

opencvjs works just fine, but it useless heh

@Avaroth
Copy link

Avaroth commented Jan 10, 2020

I like the wasm idea. And there seems to be working examples already (like this one https://codepen.io/huningxin/pen/gxRKdo)

Now I just need to figure out how to use it properly in Vue.js

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

2 participants