MrGreyKnight
Explore posts from serversTTCTheo's Typesafe Cult
•Created by MrGreyKnight on 5/6/2024 in #questions
Client side SDK
I need to use a in browser sdk for connecting to our dymo printers and dymo provides as JS sdk for us to use however I’m not sure the best way to add this to a next js app
Using t3 (ts) and app router. Can anyone advise?
The framework makes local requests to a piece of software installed on the local machine so it will never be possible for nextjs to run it on server or build. I assumed that client components would be the route but not getting anywhere
1 replies
KKinde
•Created by MrGreyKnight on 4/2/2024 in #💻┃support
Updating custom properties
Is there any additional documentation for than this section for using the management api through the nextjs-sdk (app router)?
https://kinde.com/docs/developer-tools/nextjs-sdk/#kinde-management-api
Just looking at it and can see additional methods, for example, client.usersApi.updateUserProperties but cannot seem to find any docs for the methods.
7 replies
TTCTheo's Typesafe Cult
•Created by MrGreyKnight on 9/2/2023 in #questions
VSCode TS Server and typescript compiler giving different results with prisma
I have prisma setup on a rather large project which has been compiling fine until today.
Looking over the commit logs there has been no changes in our prisma files, setup or the code which is erroring.
In VS code it is managing to find the types for our models and their respective query types (find many, delete)
But when building nextjs it gives me an error saying that the propertydoesn’t exist on type PrismaClient<PrismaClientOptions, never, DefaultArgs>
Super stumped as to what the issue is, the only changes have been on a completely separate api route which only uses raw query and no changes to prisma or the api route giving the type error.
I have tried updating prisma to 5.2.0, re-generating the prisma client but I don’t understand why the issue has randomly shown up and only on build not in VS code (it can find all the models)
4 replies
TTCTheo's Typesafe Cult
•Created by MrGreyKnight on 5/6/2023 in #questions
TRPC onClick
What is the best way to call a TRPC client on a button click.
looking to get data from TPRC
8 replies
TTCTheo's Typesafe Cult
•Created by MrGreyKnight on 2/3/2023 in #questions
Using clientside only library with nextjs (t3)
I have been working on a rebuild of an ancients system that we use in nextjs (t3 all in with ts) however we require to use a javascript library for connecting to our printers (dymo labelwriter sdk), what is the best way to achieve using the library with the t3stack without getting hydration issues or a load of type errors and not having the library run on the server side?
(the library is old and kinda shitty and I don't feel like trying to rewrite it)
3 replies
TTCTheo's Typesafe Cult
•Created by MrGreyKnight on 1/6/2023 in #questions
Global CSS cannot be import, src directory issue
Probably a noob question, just trying the T3 stack with turbo.
No changes to the code other than adding, turbo and setting environment variables.
However, I am getting an issue with the global css import due to the src directory usage.
I have not used the src directory within next myself before and cannot seem to find anything that would relate to the issue through the docs (t3, nextjs) and unsure how to resolve
5 replies