I’m new to using node.js, and this is the first desktop app that I am trying to make with electron, so please excuse my lack of experience in this subject.
First, I would like to give some background information that lead me to this error.
I was able to package my electron app successfully, before implementing electron-spellchecker. When I ran npm start, electron-spellchecker worked perfectly, but after running npm run build the stand alone app gave me this error “Module version mismatch. Expected 47, got 50”. I was able to fix this error after reading some posts by other users who had been experiencing a similar problem. After fixing this error when I ran npm run build, the console showed a new error which is the following error:
Uncaught TypeError:browserWindowOrWebView.getWebContents is not a function
I can’t seem to figure out how to resolve this error. I would appreciate any help that I receive.
Here is some other information that may be useful to know.
OS: MacOS Sierra 10.12.5
node -v: v5.12.0
npm -v: 3.8.6
Electron version: 1.6.11
Once again, thanks for the help in advance.