bcrypt is breaking my server actions
Unanswered
Japanese flying squid posted this in #help-forum
Japanese flying squidOP
if i try to run a server action in the Middleware that is in the same file where bcrypt is used and imported im getting this error
7 Replies
Do you have bcrypt types?
npm install --save @types/bcrypt
@Japanese flying squid
it is bc you are using it into the client
use it in server pages only
add "use server" at the top of the file to be 100% sure you are in the server
@Diamond Master it is bc you are using it into the client
Japanese flying squidOP
Im using it in middleware this is not client
I fixed it by using bcryptjs