Dale
Dale
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Dale on 5/6/2023 in #questions
Vercel and installing Julia
Is there a way to install Julia in a NextJS app deployed onto Vercel? Currently, this is my approach.
// src/pages/index.jsimport { useState } from "react";export default function Install() { const [message, setMessage] = useState(""); async function installJulia() { try { const response = await fetch("/api/installJulia", { method: "POST", headers: { "Content-Type": "application/json", }, }); const data = await response.json(); console.log(data); setMessage(JSON.stringify(data)); } catch (error) { console.error("Error:", error); setMessage("An error occurred while installing Julia."); } } return ( <main className="flex min-h-screen flex-col items-center justify-between p-24"> <button onClick={installJulia}>Install Julia</button> {message && <p className="mt-4 text-center text-red-600">{message}</p>} </main> );}
// src/pages/index.jsimport { useState } from "react";export default function Install() { const [message, setMessage] = useState(""); async function installJulia() { try { const response = await fetch("/api/installJulia", { method: "POST", headers: { "Content-Type": "application/json", }, }); const data = await response.json(); console.log(data); setMessage(JSON.stringify(data)); } catch (error) { console.error("Error:", error); setMessage("An error occurred while installing Julia."); } } return ( <main className="flex min-h-screen flex-col items-center justify-between p-24"> <button onClick={installJulia}>Install Julia</button> {message && <p className="mt-4 text-center text-red-600">{message}</p>} </main> );}
3 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
I am following along with the official t3 stack video tutorial here. At ~24 min, there is a typescript error in TRPC, and Theo restarts the server, which fixes the problem. I am getting the same problem, but restarting the server doesn't fix the problem. Any ideas?
import { z } from "zod";

import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";

export const postsRouter = createTRPCRouter({
getAll: publicProcedure.query(({ ctx }) => {
return ctx.prisma.post.findMany();
}),
});
import { z } from "zod";

import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";

export const postsRouter = createTRPCRouter({
getAll: publicProcedure.query(({ ctx }) => {
return ctx.prisma.post.findMany();
}),
});
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/11/2023 in #questions
NextAuth and custom paths
How would you use NextAuth in a t3 app, where I am developing on a virtual machine?
6 replies
TTCTheo's Typesafe Cult
Created by Dale on 2/14/2023 in #questions
create-t3-turbo full video walkthrough
I have no mobile dev experience and I’m getting kinda hung up on some seemingly simple concepts while trying to develop a create-t3-turbo app. Are there any full development walkthrough videos out there? Simple things like pnpm db-… are tricking me more than they probably should, so I’d love to see a full breakdown if it’s available!
1 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/30/2023 in #questions
How do you run `primsa` commands in a `create-t3-turbo` monorepo?
I can run pnpm db-push but I would like to run other commands, like prisma migrate. I can't figure out how to do this
16 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/27/2023 in #questions
Add permissions for `turbo dev...`
I am trying start a t3-turbo-and-clerk app and after pnpm i and pnpm dev I get this error: sh: /Users/daleblack/Library/CloudStorage/[email protected]/My Drive/dev/bible-mem/node_modules/.bin/turbo: Permission denied  ELIFECYCLE  Command failed with exit code 126. The app is located inside of a google drive folder which is streamed (not on harddrive), so I am guessing that's the issue. Any ideas how to solve this?
4 replies
TTCTheo's Typesafe Cult
Created by Dale on 1/3/2023 in #questions
Best database setup
Hello all. I’m starting a fresh app and I wanted to know what are your favorite Postgres database setups with prisma and why. I am intrigued by pocketbase, even though that’s not Postgres, but I wanna know what else is out there. Seems like PlanetScale is standard but I would love to know more about Xata.
5 replies
TTCTheo's Typesafe Cult
Created by Dale on 11/21/2022 in #questions
VSCode Format on Save Help
New to TS and create-t3. Just started a t3-app and my .tsx files aren't auto formatting on save. Any idea if I need to modify anything in VSCode, as I have only worked with JS before this endeavor? The atuo-formatting works with the exact same file if it's a .js file btw
19 replies