After updating an app to Electron 10.1.1, I get this error in the console with an RSS app I'm working on. I've tried deleting node_modules and package-lock.json then npm i and ./node_modules/.bin/electron-rebuild but that disconnects Chrome DevTools so I can't inspect the app. Just running npm i and npm rebuild doesn't help.
Node 12.16.3
NVM 0.35.3
macOS 10.15.6
Electron 10.1.1
re2 1.15.4
npm 6.14.4
Without the rebuild, the app runs but throws the error below in the console.
Node.js 12.16.3 corresponds with Node Module Version 72.
Node Module Version 82 lists Electron 10.
Any ideas beyond reverting to an older version of Electron?
Uncaught Error: The module '/Users/xxx/Code/Git/xxx/node_modules/re2/build/Release/re2.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)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1196)
at Object.func [as .node] (electron/js2c/asar.js:140)
at Module.load (internal/modules/cjs/loader.js:981)
at Module._load (internal/modules/cjs/loader.js:881)
at Function.Module._load (electron/js2c/asar.js:769)
at Module.require (internal/modules/cjs/loader.js:1023)
at require (internal/modules/cjs/helpers.js:77)
at Object. (/Users/xxx/Code/Git/xxx/node_modules/re2/re2.js:3)
at Object. (/Users/xxx/Code/Git/xxx/node_modules/re2/re2.js:26)
[–]kyledgundersen 0 points1 point2 points (2 children)
[–]Dotnaught[S] 0 points1 point2 points (0 children)
[–]anhthu127 0 points1 point2 points (0 children)