Does anyone know why I am getting this error? ```i...
# orm-help
j
Does anyone know why I am getting this error?
Copy code
import {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 error
m
@Jack Baude This error has nothing to do with Prisma. You need to add this line
"type": "module"
to your package.json file. Also trying using:
const { PrismaClient } = require("@prisma/client")
.