This message was deleted.
# orm-help
s
This message was deleted.
n
Hey Tauri, you can follow this "Get Started"-tutorial to generate the Prisma Client for JS: https://www.prisma.io/docs/1.20/get-started/01-setting-up-prisma-new-database-JAVASCRIPT-a002/
t
I have, but generate only generates ES5 js client api with the AMD
n
Not sure what exactly you mean, did you have trouble using the Prima client in an ES6 environment? It should definitely work. Also, what is AMD?
t
Yes. I need to import {prisma} from "./generated/etc"
n
So you want to use the
import
syntax instead of
require
?
t
yes
n
This should work with Prisma client out-of-the box. What is your issue exactly?
t
my react compiler does not understand require
n
Did you try to use
import
instead?
import { prisma } from "...";
t
yes, thats why I am here, its not working
it is saying "require is not defined"
i am in a browser environment btw
ok i need to include some kind of module loader for the bundler i guess