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

next-auth-sanity Install ERR #69

Open
Developer-Kings-dev opened this issue Feb 2, 2024 · 7 comments
Open

next-auth-sanity Install ERR #69

Developer-Kings-dev opened this issue Feb 2, 2024 · 7 comments

Comments

@Developer-Kings-dev
Copy link

I tried running npm i next-auth-sanity in my VS Code terminal, but I keep getting error log of messages, please what can I do to resolve this issue.
Desktop-screenshot (1)

@MokDevelopment
Copy link

I can confirm this happens to a fresh Next JS 14 Setup on Node.js v21.6.0

@Developer-Kings-dev
Copy link
Author

Yea, please what should I do?

@MokDevelopment
Copy link

MokDevelopment commented Feb 3, 2024

Hey @Developer-Kings-dev .. we spoke already on Slack regarding this issue.
I was able to install the package by using this setup (next 14 latest & sanity installed in the next js project):

npx create-next-app@latest
npm create sanity@latest -- --project YOUR_SANITY_PROJECT_ID --dataset production --provider google
yarn add next-auth-sanity

@Developer-Kings-dev
Copy link
Author

@MokDevelopment Hello good day, I tried
npx create-next-app@latest
npm create sanity@latest -- --project YOUR_SANITY_PROJECT_ID --dataset production --provider google
yarn add next-auth-sanity
it did not work, please do you have any solutions, also please is there anyway we can communicate more, so that I can share my project with you, am new to next.js

@Developer-Kings-dev
Copy link
Author

@fedeya Hello good day, I tried

npx create-next-app@latest
npm create sanity@latest -- --project YOUR_SANITY_PROJECT_ID --dataset production --provider google
yarn add next-auth-sanity

it did not work, please do you have any solutions, also please is there anyway we can communicate more, so that I can share my project with you, am new to next.js

@fedeya
Copy link
Owner

fedeya commented Feb 8, 2024

Hi, this seems like a problem with node gyp on your machine, this library uses argon2 for passwords and token hashing and argon2 are C++ bindings, can you try installing argon2 alone? If you get an error, you may need to take a look at the Visual C++ build tools on Windows.

@anthlasserre
Copy link
Contributor

@Developer-Kings-dev @MokDevelopment Can you, guys, double-check that you haven't exported the signUpHandler under the pages folder ? I made this mistake by following the example app here. Feel free to check the PR above.

#71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants