metalpipemomo
TTCTheo's Typesafe Cult
•Created by metalpipemomo on 8/2/2023 in #questions
How does ct3a launch the cli on install?
Hi! I am trying to build a template/cli app of my own and I've been studying the ct3a github repo (the cli portion specifically), and I don't really have a clue as to how the cli is launched on install!
Currently, my app works by pnpm init -> pnpm install package -> npx package. (Weirdly, it only works if I use pnpm, npm is a no-go).
On a similar note, create-next-app uses npx to launch itself which adds more to the confusion.
Any clue about any of these would be great help!
7 replies
TTCTheo's Typesafe Cult
•Created by metalpipemomo on 7/31/2023 in #questions
CommonJS/Module Errors Feel Random?
Hey! I have two projects with an identical configuration. For some reason, one project will run while the other one will fail due to an ES Module error.
package.json and tsconfig.json of project that works:
package.json and tsconfig.json of project that does not work:
The first project is basically the prisma-express.js example from their github repo.
The second project is just me trying to learn how to make a CLI app.
8 replies
TTCTheo's Typesafe Cult
•Created by metalpipemomo on 3/23/2023 in #questions
Consuming a tRPC Query in getServerSideProps
6 replies
TTCTheo's Typesafe Cult
•Created by metalpipemomo on 10/16/2022 in #questions
getStaticProps runs multiple times!
Have no idea why this happens, few threads on github but no solution it seems.
When it runs, only one of the runs has the proper params, the rest are just undefined.
While we're at it, I don't totally understand the dataflow here (I followed the SSG Query pattern suggested on the tanstack page) so any explanation would be super appreciated.
22 replies
TTCTheo's Typesafe Cult
•Created by metalpipemomo on 10/13/2022 in #questions
NextJS build works locally but fails when deployed to Vercel
7 replies