Jack Baude
02/06/2021, 8:17 PMimport {PrismaClient} from "@prisma/client"
^^^^^^
SyntaxError: Cannot use import statement outside a module
I can run this code just fine with ts-node
but as soon as I want to complie my code with tsc
I get this errorMartïn
02/06/2021, 8:44 PM"type": "module"
to your package.json file. Also trying using:
const { PrismaClient } = require("@prisma/client")
.