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

Infinite Execution in Vercel Installation Command with Zod Generator [BUG] #217

Open
julio-ccatb opened this issue Nov 28, 2023 · 1 comment
Assignees
Labels
bug (unconfirmed) Could be a bug

Comments

@julio-ccatb
Copy link

When deploying T3 app to Vercel using the Zod generator, the install command runs indefinitely, most likely because Vercel cannot find the npx zod-prisma-types command as a valid command. However, it doesn't crash for some reason until the default Vercel timeout occurs and closes it.

Screenshots
image

To reproduce

  • Create a NextJS aplication using create-t3-app t3-app
  • Provide it with minimal confuguration adding prisma
  • Add the generator using using any pakage manager npm i zod-prisma-types
  • Add the generator to the schema like below
  • Upload the project to vercel
generator zod {
  provider = "npx zod-prisma-types"
} 

Fix

generator zod {
  provider = "zod-prisma-types"
} 

Package versions (please complete the following information):

  • zod: 3.22.4
  • prisma: 5.1.1
  • next: 14.0.3

Note

While it's unclear if this behavior stems from a misuse on my end, for the benefit of others encountering this issue, there should ideally be a flag or documentation update within the usage section to address this.

--

@julio-ccatb julio-ccatb added the bug (unconfirmed) Could be a bug label Nov 28, 2023
@julio-ccatb julio-ccatb changed the title Infinite Execution in Vercel Installation Command with Zod Generator [BUG] Infinite Execution in Vercel Installation Command with Zod Generator Nov 28, 2023
@julio-ccatb julio-ccatb changed the title Infinite Execution in Vercel Installation Command with Zod Generator Infinite Execution in Vercel Installation Command with Zod Generator [BUG] Nov 28, 2023
@CyanoFresh
Copy link

probably related #170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unconfirmed) Could be a bug
Projects
None yet
Development

No branches or pull requests

3 participants