import { PrismaClient } from "../generated/client"; SyntaxError: Cannot use import statement outside a module #9972
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
What version of Turborepo are you using?
2.4.2
What package manager are you using / does the bug impact?
yarn
What operating system are you using?
Mac
What version of Node are you using?
v20.10.0
Additional information
I want to create project with turborepo, nest, next and prisma as a package. In order to do that I tried to combine those two examples:
apps/web works fine and there is no errors nor warnings, but I have problem with apps/api. I tried different tsconfig configuration, different node version but there are still different errors. In current state (https://github.com/BurdalskiBartosz/turborepo-starter-nest-next-prisma) I face given error:
Steps
cp .env.example ./apps/web/.env
cp .env.example ./apps/api/.env
Example
https://github.com/BurdalskiBartosz/turborepo-starter-nest-next-prisma
Beta Was this translation helpful? Give feedback.
All reactions