[typegraphql-prisma
] SyntaxError: Unexpected token 'export'
#689
Labels
Prisma 🔺
Issues about typegraphql-prisma integration
Question ❔
Not future request, proposal or bug issue
Solved ✔️
The issue has been solved
I want to start exploring the
typegraphql-prisma
integration based on the existing TypeGraphQL + Prisma example in theprisma-examples
repo.Reproduce
To reproduce the error, you can set up the example:
The example itself doesn't use the integration yet, so I wanted to add it with the following steps. Installed the required deps:
Then I added the generator:
And ran
npx prisma generate
.I then see the new files in
node_modules/@generated/type-graphql
.Now I want to use some of the generated default resolvers and adjust
src/index.ts
as follows:However, when I'm trying to run this I'm getting the following error:
Any thoughts on what I'm missing here?
The text was updated successfully, but these errors were encountered: