lizzy πŸ–€
lizzy πŸ–€
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
oh well. shit happens i guess, it’s webdev
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
pnpm, wtf?
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
yeah no it finally worked. remove node_modules, get rid of the stupid corepack field and yarn && yarn dev and it's good
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
oh wait
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
for the record i have had zero issues with this on windows but on my mac it just doesn't fucking work
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
how do i unmark the solution because that clearly wasn't it.
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
Bumping this since i just got back to work on this project after a few weeks of inactivity. For anyone reading after the fact this issue is not with pnpm. I also experienced it just now with npm. I've removed the packageManager field from package.json and purged my node_modules. I'm now reinstalling with yarn and yet again i have the same error.
16 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 2/11/2024 in #questions
Really obscure TypeError when starting Next.js
cool, thanks. not in the next server but i guess i’ll just use yarn since i already tried purging node_modules.
16 replies
TTCTheo's Typesafe Cult
Created by nozadev on 6/10/2023 in #questions
What is the point of learning Node.js?
yeah who needs basic language features like types when you have prisma & trpc
13 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
i solved it, weirdly enough by putting the client list on the global object
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
for more context, in a trpc mutation i'm calling socketState.broadcastMessage() and in this instance the value of this.clients is Set{0}
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
for some reason clients is still an empty set even with websocket clients actively connected https://i-work-at-the.cocaine.institute/Lizzy637ce353BtfU4j3x0UhV.png
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
the project is on github if anyone wants to take a look at our current source: https://github.com/SynapseTech/iridium-chat
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
but i'd like to be able to broadcast a message to all or some clients via trpc, i.e. when a message is created.
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 11/15/2022 in #questions
Websockets & Connection Upgrade on Next server
well, we've got websockets working by themselves
7 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 10/8/2022 in #questions
Credentials Auth with tRPC
i actually didn't change any of that whatsoever. next-auth still handles the session and everything seems to work as intended. i havent had a lot of reason to fetch sessions on the trpc side but if i were to need it, i'd have to reimplement the aforementioned manipulation of data
12 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 10/8/2022 in #questions
Credentials Auth with tRPC
Under NDA. Sorry but no-can-do
12 replies
TTCTheo's Typesafe Cult
Created by lizzy πŸ–€ on 10/8/2022 in #questions
Credentials Auth with tRPC
i got it to work as intended, i'll say that much. it was a bit different from session management as the credentials provider actually did cover that. i did have to manipulate the session data however
12 replies
TTCTheo's Typesafe Cult
Created by johnny the fifth on 9/26/2022 in #questions
can i remove a background from an image using Js
i believe that if you aren't already using a threshold value you should be, and if you aren't that's why you're getting garbage results
25 replies