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
barry
barry•3y ago
You probably can but why
currenthandle
currenthandleOP•3y ago
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 included
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
cje
cje•3y ago
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 it
currenthandle
currenthandleOP•3y ago
ok
cje
cje•3y ago
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 behavior
currenthandle
currenthandleOP•3y ago
I 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
cje
cje•3y ago
cje
cje•3y ago
client id and client secret are these two things
currenthandle
currenthandleOP•3y ago
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 in
barry
barry•3y ago
delete oauth one localhost isnt https either afaik
cje
cje•3y ago
it should be this
currenthandle
currenthandleOP•3y ago
That did it thanks
barry
barry•3y ago
dont need the first one
currenthandle
currenthandleOP•3y ago
Only need the /discord one
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
cje
cje•3y ago
my bad, try this npx create-t3-app@5 but i would advise against using it the new stuff is better
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
cje
cje•3y ago
Did you delete mode modules
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
robotkutya
robotkutya•3y ago
I'm trying to log in dev mode (localhost)
nexxel
nexxel•3y ago
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
robotkutya
robotkutya•3y ago
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."
robotkutya
robotkutya•3y ago
@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-...
Want results from more Discord servers?
Add your server