electron-userland / electron-spellchecker

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

TypeError: (0 , _spawnRx.spawn)(...).catch is not a function #110

Closed rkistner closed 5 years ago

rkistner commented 6 years ago

Following the example on Linux, I'm getting the following error:

/myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:650 Uncaught (in promise) TypeError: (0 , _spawnRx.spawn)(...).catch is not a function
    at /myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:650
    at Generator.next (<anonymous>)
    at step (/myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:73)
    at /myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:73
    at Promise (<anonymous>)
    at /myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:73
    at SpellCheckHandler.buildLikelyLocaleTable (/myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:715)
    at /myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:594
    at Generator.next (<anonymous>)
    at step (/myproject/node_modules/electron-spellchecker/lib/spell-check-handle…:73)

The issue seems to be on this line: https://github.com/electron-userland/electron-spellchecker/blob/master/src/spell-check-handler.js#L591

Any idea why this could happen?

AdrianoFerrari commented 6 years ago

Same issue here. Thanks for fixing it in the PR.