Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Unable to setup the project locally. Don't know the reason at all. #1720

Closed
mohit-singh-13 opened this issue Jan 19, 2025 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@mohit-singh-13
Copy link

mohit-singh-13 commented Jan 19, 2025

Describe the bug
Not able to run the cms repo locally. Tried many ways to fix it but unable to fix it. I think something is up with the bcrypt package as we can see in the following screenshot, other than that I've no idea what's going on with it.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Just follow the steps mention in Readme.md and run the project locally.

Expected behavior
I think it should load the Landing Page as per root page.tsx

Screenshots or GIFs

Image

When I'm transforming root page.tsx as shown below then the landing page works just fine :-

Image

Image

Basically I'm commenting "import { authOptions } from '@/lib/auth';" so that "auth.tsx" doesn't get loaded which is using bcrypt and eventually causing this error. So my primary guess is that bcrypt is suspicious here, other than that I've no idea what is going on with it.

If someone can please help me to setup the project locally it will be of great help.

Info :

  • Browser [Chrome]
  • Version [131.0.6778.265]
@mohit-singh-13 mohit-singh-13 added the bug Something isn't working label Jan 19, 2025
@mohit-singh-13
Copy link
Author

Got the issue resolved
Found this -> kelektiv/node.bcrypt.js#800
and just ran :-

cd node_modules/bcrypt
npm install --fallback-to-build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant