-1

I created a chrome extension. I am planning to use an encryption to encrypt data on a web page. I need to use CryptoJS library, however, whenever I try to use import CryptoJS, I get the error: Uncaught SyntaxError: Cannot use import statement outside a module.

I also tried to do with require but "Uncaught ReferenceError: require is not defined".

Mario
  • 1

0 Answers0