Comments (5)
Hey Krystian - thanks for flagging. Are you using planetscale? I encountered this issue as well (only with planetscale) and haven't been able to find a solution. For the time being, I've been using the underlying query that runs on the server (so in this case getComputers()) in the server component and then sending that data down to a client component that uses trpc on the client side.
For the server side TRPC implementation, I'm leveraging an experimental feature from the TRPC team called server invocation. Hopefully as the Nextjs team solves the issues around caching, this will get resolved.
from kirimase.
yes, I'm using MySQL with Planetscale. I've also tried implementing the experimental features to get TRPC to work on the server with app dir before I learned about your project, but with little success.
Yea, noticed your PR changing from using api.computers.getComputers to getComputers right after I posted the issue hah, will use the same approach for now and hopefully we have the issue sorted in the near future!
Great work on the Kirimase, love it already
from kirimase.
Ha yes indeed - stumped me for a while and then I just gave up. Hopefully resolved soon! and thank you, happy to hear 😊
from kirimase.
think for now the best would be to use plain db calls instead of trpc for RSCs until it's solved
from kirimase.
I just encountered the same issue -, solution for me was to only invoke db calls using the planetscale driver on the edge.
Solution
page.tsx:
export const runtime = "edge"
Do we know why this could be? 🤔 Also, maybe not the forum to discuss this, but anyway. Ill leave it here.
from kirimase.
Related Issues (20)
- Type 'Date' is not assignable to type 'string'.
- [feature] support t3 env? HOT 1
- Error in setting up project HOT 2
- BUG: SQlite+SignIn ! HOT 3
- Errors when running generate HOT 7
- [Feature] Add User Role HOT 2
- kirimase 0.0.13 HOT 1
- 404 error HOT 2
- [Questions] Reference user table with kirimase generate HOT 1
- [Minor] globals.css file is created in a new app/globals.css directory if src file is included
- Add support for NextUI HOT 3
- Fix: Clerk redirect HOT 1
- Missing "updatedAt" & "createdAt" fields in generated Auth.ts schema
- TypeError: Property 'readonly' is missing HOT 2
- Add CredentialProvider option for Auth.js
- Model file is missing import for uniqueIndex with Drizzle
- Add support for xata.io PostgreSQL
- feature add: update package.json so that it has script for prisma generate for development and production
- Google Auth Erroring out HOT 2
- Dev build errors on local & vercel, on a fresh 'kirimase init'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirimase.