Issue with importing cv
Hi Everyone,
I am getting the the error ERR_DLOPEN_FAILED while trying to import opencv4nodejs with typescript.
The import statement I am using is this:
import * as cv from 'opencv4nodejs';
The error trace:
2024-06-05T11:54:06.190Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///D:/MSTeams%20Repos/BIM/MSTeamsAppTestingWDIO/wdio.electr
on-conf.ts: The specified module could not be found.
\?\D:\MSTeams Repos\BIM\MSTeamsAppTestingWDIO\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
Error: The specified module could not be found.
\?\D:\MSTeams Repos\BIM\MSTeamsAppTestingWDIO\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.
I have installed opencv, set the environment variables and disabled autobuild. The package successfully installs, but I get this error.
i'm having the same issue - i think its the ? in the path
2024-06-05T11:54:06.190Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///D:/MSTeams%20Repos/BIM/MSTeamsAppTestingWDIO/wdio.electr
on-conf.ts: The specified module could not be found.
\?\D:\MSTeams Repos\BIM\MSTeamsAppTestingWDIO\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
Error: The specified module could not be found.
Looking into fixes now