brix / crypto-js

JavaScript library of crypto standards.
Other
15.88k stars 2.39k forks source link

Unresolved variable enc, anything... #443

Open oustr opened 1 year ago

oustr commented 1 year ago

I used yarn add crypto-js to install and it's the latest version 4.1.1. However, no matter it's import CryptoJS from "crypto-js" or const CryptoJS = require("crypto-js"), I just couldn't use CryptoJS.enc, CryptoJS.AES and anything else, and WebStorm always tells me something like unresolved variable enc. 2022-12-29_20-35-39 2022-12-29_20-36-48 I don't understand why I meet this problem since everything is right with my other imports or requires.