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

Module not found: Error: Can't resolve '../build/Release/opencv4nodejs.node' #789

Open
Ninei opened this issue Dec 21, 2020 · 3 comments
Open

Comments

@Ninei
Copy link

Ninei commented Dec 21, 2020

I'm receiving a error while trying to import in nodejs typescript & webpack project.
import * as cv from 'opencv4nodejs'

Receiving issues...
ERROR in ./node_modules/opencv4nodejs/lib/opencv4nodejs.js
Module not found: Error: Can't resolve '../build/Release/opencv4nodejs.node' in '/Volumes/NineiDB/DB/Workspace/Working/CloudX/node_modules/opencv4nodejs/lib'
@ ./node_modules/opencv4nodejs/lib/opencv4nodejs.js 11:29-75

OS: Mac
Install script is as follows.
echo export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
npm install opencv4nodejs
Install step is NO error.

@KeitelDOG
Copy link

Any update? Still can't find the build. I'm using manually installed opencv 4.5 via Brew. I'm stuck, on Macos Catalina, XCode 12.3, CommanLineTools 12.3.

Fully installed package, appeared in package.json, but still error.

@riccardolardi
Copy link

Anyone been able to resolve this?

@KeitelDOG
Copy link

@riccardolardi I fixed it long ago, it was because Node Gyp failed to build the ../build/Release/opencv4nodejs.node file, that is required to process the OpenCV codes in Node JS. You can read the discussion here where I showed the bugs and how I turned around easily to make it build and work : #805

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

3 participants