I'm currently working on integrating a package called bcrypt into my project. I have successfully installed it using npm install bcrypt.
Although the package is visible in the node_modules folder, I am encountering an error when trying to import it into my code:
"Cannot find module 'bcryptjs' or its corresponding type declarations."
I have made attempts to adjust the moduleResolution value in tsconfig.json thinking that might be the root cause, but unfortunately, the problem persists. Can anyone provide insight or guidance on what mistake I might be making?
This snippet shows the contents of my tsconfig.json file:
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
... (truncated for brevity)
Furthermore, this is where I am attempting to utilize the method:
import { IUserAuthenticatedResponse } from "@/types/userAccountTypes";
... (truncated for brevity)
Your help and guidance are greatly appreciated. Thank you!