-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using with Node v18.12.1 and Electron v21.0.1 getting the Error: Compiled against a different Node.js version using NODE_MODULE_VERSION 108. The version of Node.js requires NODE_MODULE_VERSION 109. #2156
Comments
I had looked at #2132 which said it was closed in favor of a duplicate here: #2025 which then was closed out based on this comment saying that Node v18 and v19 should now be supported with Canvas v2.10.2 here: #2025 (comment) |
Which version are you using, that requires 109? 🤔 ref: https://nodejs.org/en/download/releases/ edit: just saw in the title that you are using electron, this is not something that we support right now, but if there are instructions on how to make it work we'd be happy to add it seems like maybe |
@LinusU thank you for the quick reply. I have tried electron-rebuild but am having issues with it getting I know you cannot answer for Electron-rebuild but curious if these errors in my referenced Issue make any sense to you given your experience with native node modules? Thanks! |
|
@LinusU after further troubleshooting I was finally able to get node-canvas to work with Electron with some workarounds. But after deep diving into several different issues along the way, and now finally running into a crash using node-canvas getting the error cmake-js/cmake-js#222 (comment) Is this something you have looked into / thought about? (switching away from usage of Thanks! |
@LinusU here (nodejs/nan#892 (comment)) is another good explanation of the issue. It seems the issue is using Thanks in advance! I have been trying to figure out a workaround for weeks now and no luck and I see a bunch of chatter from others with same issues. |
Also see here: nodejs/nan#922 (comment) |
do not neglect : npx electron-builder install-app-deps |
Issue or Feature
As the title says, I am getting the error:
Compiled against a different Node.js version using NODE_MODULE_VERSION 108. The version of Node.js requires NODE_MODULE_VERSION 109.
I know this has been discussed many times in the past but I have tried all the suggested solutions and have read all of the applicable GitHub Issues, installation guides etc. and no luck.
Steps to Reproduce
In my hello world Electron app I simply have the following at the top and it gives the error.
Your Environment
2.10.2
Node 18.12.1 + Electron 21.0.1 + Windows 11
I am simply using the current LTS version of Node (18.12.1) as well as the current Stable version of Electron (21.0.1).
The text was updated successfully, but these errors were encountered: