justadudewhohacks / opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4
MIT License
4.94k stars 821 forks source link

Issue in setting up opencv4nodejs with electron #772

Open devloprNaveen opened 3 years ago

devloprNaveen commented 3 years ago

I am trying to create an electron application along with opencv4nodejs. The issue I am getting is

Uncaught TypeError: Cannot read property '_handle' of undefined
    at 2.2ee1cef0.chunk.js:2
    at Array.forEach (<anonymous>)
    at e.exports (2.2ee1cef0.chunk.js:2)
    at Object.<anonymous> (2.2ee1cef0.chunk.js:2)
    at Object.<anonymous> (2.2ee1cef0.chunk.js:2)
    at l (index.html:1)
    at Object.<anonymous> (2.2ee1cef0.chunk.js:2)
    at Object.<anonymous> (2.2ee1cef0.chunk.js:2)
    at l (index.html:1)
    at Object.<anonymous> (2.2ee1cef0.chunk.js:2)

I have tried both electron + react and electron + vue. I am getting the same error when I build the application. It would be great if someone can help

aalhaimi commented 3 years ago

@devloprNaveen, did you solve the problem?