electron-userland / electron-spellchecker

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

cannot find module 'fs' #141

Open AlexandreKilian opened 5 years ago

AlexandreKilian commented 5 years ago

Hello!

Trying to use this in my renderer process, I get the following error message:

src_sync:2 Uncaught Error: Cannot find module 'fs'
    at webpackEmptyContext (src_sync:2)
    at module.exports.reduce (promisify.js:4)
    at Array.reduce (<anonymous>)
    at eval (promisify.js:3)
    at Object../node_modules/electron-spellchecker/src/promisify.js (bundle.js:6376)
    at __webpack_require__ (bundle.js:20)
    at eval (dictionary-sync.js:10)
    at Object../node_modules/electron-spellchecker/src/dictionary-sync.js (bundle.js:6332)
    at __webpack_require__ (bundle.js:20)
    at eval (index.js:3)

fs is def. available since I'm using it in other parts of the application

ajboni commented 5 years ago

Getting the same error, did you found the solution?

AlexandreKilian commented 5 years ago

no, I ended up switching to https://github.com/atom/node-spellchecker