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

Missing PrismaPromise export after update from 4.9.0 to 4.11.0 #18143

Closed
wiput1999 opened this issue Feb 28, 2023 · 4 comments · Fixed by #18475
Closed

Missing PrismaPromise export after update from 4.9.0 to 4.11.0 #18143

wiput1999 opened this issue Feb 28, 2023 · 4 comments · Fixed by #18475
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/regression A reported bug in functionality that used to work before. team/client Issue for team Client. topic: client types Types in Prisma Client
Milestone

Comments

@wiput1999
Copy link

Bug description

I got No PrismaPromise exported from Prisma generated client

How to reproduce

  1. Generate Prisma Client
  2. Import PrismaPromise from generated client
  3. Got no exported member

Expected behavior

On 4.9.0 is working before upgrade not sure what change on code generator from 4.9.0 to 4.11.0

Prisma information

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["fullTextSearch"]
  binaryTargets   = ["native", "rhel-openssl-1.0.x", "linux-arm64-openssl-1.0.x"]
  output          = "../layers/prisma"
}

Environment & setup

  • OS: macOS
  • Database: PostgreSQL
  • Node.js version: v16.15.0
  • TypeScript : 4.9.5

Prisma Version

4.11.0
@wiput1999 wiput1999 added the kind/bug A reported bug. label Feb 28, 2023
@wiput1999 wiput1999 changed the title PrismaPromise export missing after update from 4.9.0 to 4.11.0 Missing PrismaPromise export after update from 4.9.0 to 4.11.0 Feb 28, 2023
@s-montigny-desautels
Copy link

Since 4.10, the PrismaPromise type is under the Prisma namespace.

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

const queries: Prisma.PrismaPromise<any>[] = [];

I don't really know why it was moved, though... I didn't see it in the release notes.

@janpio janpio added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/regression A reported bug in functionality that used to work before. topic: client types Types in Prisma Client team/client Issue for team Client. and removed kind/bug A reported bug. labels Mar 1, 2023
@wiput1999
Copy link
Author

@s-montigny-desautels I've no idea about this too since nothing mention about this in release note or breaking changes.

@brandonin
Copy link

Do we know if the expectation is that Prisma.PrismaPromise is going to be the new paradigm moving forward, was it a mistake moving this entirely, or will they add backward compatibility with newer versions and utilize both?

@s-montigny-desautels
Copy link

For reference, it was changed in this PR #17594.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/regression A reported bug in functionality that used to work before. team/client Issue for team Client. topic: client types Types in Prisma Client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants