I have installed WebStorm 2019.3 and there is a weird unresolved function warning for a bcryptjs library. The project is Node.js and I did npm install.
There are other dependencies working fine but this particular does not. Any idea?
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const MongoClient = require('mongodb').MongoClient;
MongoClient.connect(uri) // OK, not highlighted
const token = jwt.sign({ // OK, not highlighted
if (bcrypt.compareSync(password, user.password)) { // KO, highlighted as unresolved
