cms
cms copied to clipboard
errors occurred due to bcript after setting up locally and hence it i…
🔧 Fix bcrypt installation error by replacing with bcryptjs
PR Fixes:
- ✅ Replaced
bcryptwithbcryptjsto avoid native compilation issues during setup. - ✅ Updated all relevant imports and usage in the codebase.
- ✅ Confirmed successful user authentication and registration after replacement.
Resolves:
No linked issue.
✅ Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] I assure there is no similar/duplicate pull request regarding same issue
@DebasishBarai IMO there will be backwards compatibility issue for the existing users!
ig bcrypt and bcryptjs both functionality wise are the same the only difference being bcrypt is written in c and bcryptjs in pure js. There should not be any backward compatibily issue. here is the snapshot that i am getting with bcrypt.
another thing that I noticed removing and re-adding bcrypt and @types/bcrypt makes it work. idk why??