brix / crypto-js

JavaScript library of crypto standards.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unresolved variable enc, anything...

oustr opened this issue · comments

commented

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.