You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, everyone!
I am using electron.js for my project. I need to use canvas for publishing map tiles. When I use with another empty expressjs project it is working perfect but when I use it in electron js it never worked. it's thrown me this error.
You can try in electron-quick-start repo.
As i said, even i have pulled electron-quick-start repo and added node-canvas but again i have get same issue.
App threw an error during load
Error: The module '\?....\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 82. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1196:18)
at Object.func [as .node] (electron/js2c/asar.js:140:31)
at Module.load (internal/modules/cjs/loader.js:981:32)
at Module._load (internal/modules/cjs/loader.js:881:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:1023:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (E:....\node_modules\canvas\lib\bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:1145:30)
is there any solution for that. I didn't fix it
By the way i have read your other same issues and tried but nothing changed.
The text was updated successfully, but these errors were encountered:
...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 the module
This could mean you upgraded Node.js without re-installing canvas. Try running yarn or npm install again.
#1511 has additional info on use with Electron, however.
Hi, everyone!
I am using electron.js for my project. I need to use canvas for publishing map tiles. When I use with another empty expressjs project it is working perfect but when I use it in electron js it never worked. it's thrown me this error.
You can try in electron-quick-start repo.
As i said, even i have pulled electron-quick-start repo and added node-canvas but again i have get same issue.
App threw an error during load
Error: The module '\?....\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 82. Please try re-compiling or re-installing
the module (for instance, using
npm rebuild
ornpm install
).at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1196:18)
at Object.func [as .node] (electron/js2c/asar.js:140:31)
at Module.load (internal/modules/cjs/loader.js:981:32)
at Module._load (internal/modules/cjs/loader.js:881:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:1023:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (E:....\node_modules\canvas\lib\bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:1145:30)
is there any solution for that. I didn't fix it
By the way i have read your other same issues and tried but nothing changed.
The text was updated successfully, but these errors were encountered: