Code Monkey home page Code Monkey logo

trpc-ultra's Introduction

git clone https://github.com/sachinraja/trpc-ultra
cd trpc-ultra
deno task dev

trpc-ultra's People

Contributors

sachinraja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

trpc-ultra's Issues

Fails to launch on Deno Deploy

I've been trying to get this running on Deno Deploy and have upgraded to the latest beta version of @trpc/client but when running on Deno Deploy, I get a server error:

TRPCClientError: Unexpected non-whitespace character after JSON at position 3
at Function.from (file:///src/vendor/server/esm.sh/v96/@trpc/[email protected]/X-ZS8q/deno/links/httpBatchLink.js:2:155)
at file:///src/vendor/server/esm.sh/v96/@trpc/[email protected]/X-ZS8q/deno/links/httpBatchLink.js:2:4047

Do you have any clue where I could further investigate this error?

How to recover TRPC Errors thrown in client without Try Catch

So I have TRPC working nicely in a project but my only issue is that I cannot find a way to recover an error before it crashes the app. per the documentation here https://trpc.io/docs/error-handling throwing an error should result in returning an object containing error info that I presume should be passed into the query result as error, but instead I have to place a try catch around each query. is there not a better way of doing this that uses the error object in query result, or am I doing it wrong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.