Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Error: Cannot find module '../build/Release/canvas.node' #18

Open
nishant-shah-social opened this issue Apr 12, 2019 · 5 comments
Open

Comments

@nishant-shah-social
Copy link

when I try to execute my script having driver.FindElement("-custom","ai:plus");
I receive this error:-
{ Error: Cannot find module '../build/Release/canvas.node'
at require (internal/modules/cjs/helpers.js:22:18)
at Module.require (internal/modules/cjs/loader.js:637:17)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) code: 'MODULE_NOT_FOUND' }

Somewhere I read to upgrade node.js to latest version to get rid of this issue. But, even after upgrading to 10.15.3, getting same error.
Any idea why this might be occurring?

Thanks,
Nishant Shah

@jlipps
Copy link
Contributor

jlipps commented Apr 12, 2019

how did you install the plugin and opencv4nodejs?

@NavdeepSingh09
Copy link

any update on this issue?

@NavdeepSingh09
Copy link

I have the same issue and got below error
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not load your custom find module 'ai'. Did you put it somewhere Appium can 'require' it? Original error: Error: The module 'MODULE_PATH/test-ai-classifier/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing

@jlipps
Copy link
Contributor

jlipps commented Nov 6, 2019

did you also uninstall and reinstall the plugin?

@NavdeepSingh09
Copy link

Yes I tried @jlipps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants