Create-T3-App tRPC 9
Can I create a project with tRPC 9 via CTA or do I have to use 10 beta? If so how?
24 Replies
You probably can but why
I see a lot of documentation / articles using tRPC 9. Is the beta stable?
Also I'm getting an error on the out of the box app CTA generates and wanted to try a stable version 🤷
tRPC failed on auth.getSecretMessage: TRPCError: UNAUTHORIZED
CTA generated with (A)ll packages includedUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
we would strongly recommend using v10. it's more stable than v9
if you really want to, you can find the hash of the last version on the main branch that used v9, and do
npx ceate-t3-app@<hash>
but wouldn't recommend itok
regarding your error: you need to
npx prisma db push
and set up your auth
the auth demo cant work out of the box because it requires auth
or if you have that and are viewing the page without being logged in, then logging an error to the console in dev is intended behaviorI did that...
I created a Discord app and set Application ID to the DISCORD_CLIENT_ID and the Public Key it gave to DISCORD_CLIENT_SECRET both in .env
client id and client secret are these two things
Thx I found those as well
Right now my issue seems to be the redirect uri. I added
http://localhost:3000/api/oauth
and https://localhost:3000/api/auth/callback/discord
but I'm still seeing Invalid Oauth2 redirect_uri
when I try to log indelete oauth one
localhost isnt https either afaik
it should be this
That did it thanks
dont need the first one
Only need the
/discord
oneUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
my bad, try this
npx create-t3-app@5
but i would advise against using it
the new stuff is betterUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
Did you delete mode modules
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I'm trying to log in dev mode (localhost)
please don't post your env vars and make a new post on the forum
this might help you https://www.nexxel.dev/blog/ct3a-guestbook#setting-up-authentication
that's a little harsh... it's a toy app, don't worry about it, I'll change the keys later...
I posted the env vars, because I wanted to contrast it to the very official looking T3 documentation that I was following... it's kind of hard to do that now that you deleted my post!
Anyways, thanks for the link! This part is missing from the docs:
"Set the NEXTAUTH_SECRET as some random string too."
@nexxel I created a PR to address it
https://github.com/t3-oss/create-t3-app/pull/717
GitHub
Update First Steps by robotkutya · Pull Request #717 · t3-oss/creat...
step is missing and needed
as per
https://www.nexxel.dev/blog/ct3a-guestbook#setting-up-authentication
Closes #
✅ Checklist
I have followed every step in the contributing guide (updated 2022-10-...