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 in Nuxt.js #261

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

"fs" dependency causing compiling error in Nuxt.js #261

chiboreache opened this issue Jun 10, 2019 · 0 comments
Labels

Comments

@chiboreache
Copy link

chiboreache commented Jun 10, 2019

System information (version)
  • OpenCV.js => 1.2.1
  • Operating System / Platform => Arch Linux
  • Npm package => page
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)
@chiboreache chiboreache changed the title "fs" dependency causing compiling error "fs" dependency causing compiling error in Nuxt.js Jun 14, 2019
@huningxin huningxin added the other label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants