ZiiM
ZiiM
TTCTheo's Typesafe Cult
Created by ZiiM on 5/6/2023 in #questions
"SyntaxError: Cannot use import statement outside a module" when attempting to build a turborepo app
Solved it by removing type module, and adding ts loader to esbuild.
5 replies
TTCTheo's Typesafe Cult
Created by ZiiM on 5/6/2023 in #questions
"SyntaxError: Cannot use import statement outside a module" when attempting to build a turborepo app
Changing it to module gives me error saying:
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'F:\Dev\radiance\apps\websocket\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'F:\Dev\radiance\apps\websocket\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
5 replies
TTCTheo's Typesafe Cult
Created by not a robot on 12/25/2022 in #questions
Can't figure out how to disconnect in prisma
try it with disconnect like:
disconnect: {
id: input.feedId,
},

disconnect: {
id: input.feedId,
},

7 replies
TTCTheo's Typesafe Cult
Created by ZiiM on 12/21/2022 in #questions
Stop Pnpm moving packages installed by different package manager to .ignored
Basically its a mod for a game, the game has its own custom version of yarn so it can use packages. Its not breaking anything, its just a very annoying inconvenience and adds like 10-15 seconds to add packages.
4 replies
TTCTheo's Typesafe Cult
Created by amanuel on 11/30/2022 in #questions
Authentication flow
Uhm, unsure. Not even sure if this would work. I just know it gives you access to the function used to create user in DB. The problem I can see you having is trying to send data to the adapter.
56 replies
TTCTheo's Typesafe Cult
Created by amanuel on 11/30/2022 in #questions
Authentication flow
you could try and implement your own adapter to use in next-auth. Prisma adapter source code: https://github.com/nextauthjs/next-auth/blob/main/packages/adapter-prisma/src/index.ts Docs about creating your own adapter: https://next-auth.js.org/tutorials/creating-a-database-adapter
56 replies
TTCTheo's Typesafe Cult
Created by julius on 9/18/2022 in #questions
Intersection Observers
So I was messing around with your code and got a was able to get a slightly different result in whic all headers are now being colored when scrolled into view and color removed when scrolled out. I dont think thats exactly the result your looking for, I assume you just want the newest to be red.
114 replies