Skip to content

"fs" dependency causing compiling error #59

Description

@chiboreache
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions