justadudewhohacks / justadudewhohacks/opencv4nodejs

Cannot convert undefined or null to object at Function.keys (<anonymous>) (Testing)

Open
#723 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

I'm using the matchFeature example, works fine. But i needed to do some changes i order to work for my project but when i want to do test the following error occurs:

test/matchFeature.test.js

● Test suite failed to run

TypeError: Cannot convert undefined or null to object
at Function.keys ()

at Object. (node_modules/opencv4nodejs/lib/cv.js:63:8)
at Object. (node_modules/opencv4nodejs/lib/opencv4nodejs.js:11:79)

I think is a problem when loading the module, but i cant fix it.
I'm using Jest for testing.

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.