0

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>
Adriaan
  • 17,741
  • 7
  • 42
  • 75
EnricaS
  • 31
  • 3

0 Answers0