Open farshidbakh opened 5 years ago
Did you figure it out? I have the same problem on Ubuntu in React App. Do you have any ideas of what is wrong yet?
No, I have no idea, and I still have the problem. I am hoping someone has a solution for this problem. Thanks, and good luck.
I posted the question on stackoverflow https://stackoverflow.com/questions/57836463/importing-opencv4nodejs-to-react-app-js-throws-typeerror hopefully someone there can help.
Thanks a lot. Hopefully!
I got a hint from another developer that opencv4nodejs is probably supposed to be used server-side /back-end -- thus the nodejs in the name. If you used create-react-app to make your react app, then there is no server. I'm going to look into making my react app with Next.js so that it has a server, and then maybe the module will work. I'll kit.
I am getting the same error and I still can't find a solution.
me too 😕
This is the error I am getting, I am using OpenCV@3 and "opencv4nodejs": "^5.1.0".
What am I missing? I would greatly appreciate your help.
There are the error, I am getting. It seems that "stream" is not defined.
Error (below):
TypeError: ### Cannot read property '_handle' of undefined (anonymous function) src/simpleui/frontend/node_modules/set-blocking/index.js:3 1 | module.exports = function (blocking) { 2 | [process.stdout, process.stderr].forEach(function (stream) {
*OpenCV 3
With OpenCV-contrib? (extra modules): yes/no? NO
OS: MacOSX?