electron-userland / electron-spellchecker

Implement spellchecking, correctly
MIT License
237 stars 83 forks source link

window.spellCheckHandler.currentSpellchecker : null --- In previously working project #128

Open Nantris opened 5 years ago

Nantris commented 5 years ago

I've had this package working properly for a long time but had to change my method for handling Webpack externals from using a two package.json structure to a single one. Everything in my project works perfectly besides electron-spellchecker. Even electron-spellchecker works perfectly besides the issue below. It still builds the context menu and carries out cut and paste operations just fine. No matter what I do though, currentSpellchecker is always coming up null now.

image

Any ideas would be greatly appreciated!

chrisknepper commented 5 years ago

Try going into your node_modules folder and under electron-spellchecker/lib/spell-check-handler.js, change var _Observable = require('rxjs/Observable'); to var _Observable = require('rxjs'); and be sure to exit node/rebuild your app.