Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm test fails. Missing Prisma #11

Closed
DregondRahl opened this issue Apr 26, 2021 · 4 comments
Closed

pnpm test fails. Missing Prisma #11

DregondRahl opened this issue Apr 26, 2021 · 4 comments
Labels
is: investigating Something isn't working

Comments

@DregondRahl
Copy link

import { PrismaClient, Prisma } from "@prisma/client";

Prisma is not exported when installed fresh. Only after the generator is run does it expose Prisma. But can't run generator without first building. Maybe this is more a prisma issue?

@maoosi
Copy link
Owner

maoosi commented Apr 26, 2021

Might be related to this? prisma/prisma#6603

I'll add a postinstall script as suggested with the next release (later today), which will also resolve an issue I've introduced with 1.0.0-beta.52 in regards to accessing Prisma client from inside a custom resolver.

@maoosi
Copy link
Owner

maoosi commented Apr 26, 2021

I've just release 1.0.0-beta.53 with postinstall. Closing this issue for now, but let me know in case still present.

@maoosi maoosi closed this as completed Apr 26, 2021
@maoosi
Copy link
Owner

maoosi commented Apr 26, 2021

I've actually had to rollback, as the new postinstall script was breaking installation. I will re-open the issue and investigate further.

@maoosi maoosi reopened this Apr 26, 2021
@maoosi maoosi added the is: investigating Something isn't working label Apr 26, 2021
@maoosi
Copy link
Owner

maoosi commented May 2, 2021

Should be resolved in 1.0.0-beta.56. Let me know in case still present.

@maoosi maoosi closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: investigating Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants