-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
yarn create t3-app
crashes with Node 18 (next-auth or @next-auth/prisma-adapter incompatibility?)
#59
Comments
yarn create t3-app
crashes with Node 18yarn create t3-app
crashes with Node 18 (next-auth or @next-auth/prisma-adapter incompatibility?)
seems to be an issue with installing next-auth. i made some sample apps with some different configs and the ones who crashes are the ones with next-auth. |
this error also occurs when installing next-auth into a base next app. Reroduce
other packages seems to install fine. using npm and pnpm also works fine. Setup CPU: M1 Pro |
Seems to be a known issue for next-auth: nextauthjs/next-auth#4575 Their recommendation is using |
As far as I see it, there are three possible solutions:
[1] https://nodejs.org/docs/latest/api/process.html#processversion |
I vote 1. Simple yet effective to tell people to switch to a supported Node version. 2 would have to make changes to runPkgManagerInstall to support additional flags which seems unnecessary for a bug like this. |
@nexxeln want a pr or what do you think? |
Yeah this looks good. I'll merge the PR thanks |
Describe the bug
When running
yarn create t3-app
with Node 18, it crashes.I am not the only person with this issue, see: #57 (comment)
It seems there is an incompatibility between either
next-auth
or@next-auth/prisma-adapter
and node 18?The app still builds to some extent, and it is possible to run. Here is the console output when running it:
To Reproduce
Steps to reproduce the behavior:
yarn create t3-app
, choose defaults (yes) for everythingThis is on an M1 MacBook Air running MacOS 12, Yarn 1.22.17, Node 18.4.0
Screenshots
This is a screenshot of the app running after the installer crashed.
The text was updated successfully, but these errors were encountered: