Cannot find module 'cryptojs' in ob2

[Executing block Script] InvocationException: Cannot find module ‘cryptojs’
Require stack:

  • D:\OpenBullet2.Native\Scripts\0fb4684efa3897a7a87cf0a3bfe5a4ca.js
  • D:\OpenBullet2.Native[eval]
    Error: Cannot find module ‘cryptojs’
    Require stack:
  • D:\OpenBullet2.Native\Scripts\0fb4684efa3897a7a87cf0a3bfe5a4ca.js
  • D:\OpenBullet2.Native[eval]
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (D:\OpenBullet2.Native\Scripts\0fb4684efa3897a7a87cf0a3bfe5a4ca.js:2:18)
    at Server. ([eval]:1:4321)
    at Generator.next ()
    at [eval]:1:1271
    at new Promise ()
    at r ([eval]:1:1016)

const CryptoJS = require(‘cryptojs’);
var encrypted = CryptoJS.AES.encrypt(“1692804722533”, “afoikddjmd”)

Install the Module on your system .

Go to Ob2 folder > Scripts > in top search box type cmd > npm i cryptojs

That’s it