I am trying to implement a spell check on a wyswyg editor using javascript
const spell = require('spell-checker-js')
// Load dictionary
spell.load('de')
// Checking text
const check = spell.check('Some text to check, blahblahblah, olololo')
console.log(check)
I'm getting this error:
// Uncaught ReferenceError: require is not defined at HTMLDocument.<anonymous>