Next.js Discord

Discord Forum

Having trouble with bcrypt and Nextjs

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
I'm having issues with using bcrypt in my application. I've narrowed it down because this error will go away if I comment out all the brcypt code:

Import trace for requested module
./node_modules/@mapbox/node-pre-gyp/lib/ sync ^./.*$
./node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js
./node_modules/bcrypt/bcrypt.js
./src/app/Functions/dynamo.tsx
./src/app/components/SigninButton.tsx

I'm using it in a server component so shouldn't that be ok? Whats the protocol for using a hashing service like that in regards to passing back and forth between client and server components?

0 Replies