Monday, 7 September 2020

Electron/Node error in re2 module

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.3NVM 0.35.3macOS 10.15.6Electron 10.1.1re2 1.15.4npm 6.14.4Without 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 usingNODE_MODULE_VERSION 72. This version of Node.js requiresNODE_MODULE_VERSION 82. Please try re-compiling or re-installingthe module (for instance, using npm rebuildor 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)

Submitted September 07, 2020 at 11:51PM by Dotnaught

No comments:

Post a Comment