cms icon indicating copy to clipboard operation
cms copied to clipboard

errors occurred due to bcript after setting up locally and hence it i…

Open DebasishBarai opened this issue 6 months ago • 3 comments

🔧 Fix bcrypt installation error by replacing with bcryptjs

PR Fixes:

  • ✅ Replaced bcrypt with bcryptjs to 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 avatar Jun 09 '25 13:06 DebasishBarai

@DebasishBarai IMO there will be backwards compatibility issue for the existing users!

geekyharsh05 avatar Jun 09 '25 13:06 geekyharsh05

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. Screenshot From 2025-06-10 10-16-09

DebasishBarai avatar Jun 10 '25 04:06 DebasishBarai

another thing that I noticed removing and re-adding bcrypt and @types/bcrypt makes it work. idk why??

DebasishBarai avatar Jun 10 '25 04:06 DebasishBarai