justadudewhohacks / justadudewhohacks/opencv4nodejs

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

Open
#789 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.