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

Zod Schemas Are Not Available via Browser (when build on Vercel) #1845

Open
AlekseiAQ opened this issue Nov 12, 2024 · 0 comments
Open

Zod Schemas Are Not Available via Browser (when build on Vercel) #1845

AlekseiAQ opened this issue Nov 12, 2024 · 0 comments

Comments

@AlekseiAQ
Copy link

AlekseiAQ commented Nov 12, 2024

Description and expected behavior
Schemas are available on local, but not on Vercel.
Vercel build passes and schemas are created, but not available via browser.

The error messages: TypeError: Cannot read properties of undefined (reading 'ProfileCreateSchema') - for all of the models.

Screenshots
SCR-20241111-jpon

Environment (please complete the following information):

  • ZenStack version: "2.8.1"
  • Zod version: "zod": "^3.23.8"

Additional context

package.json scripts:

    "vercel-build": "zenstack generate && nuxt build && prisma migrate deploy",
    "build": "prisma generate && nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "prisma generate && nuxt prepare",
    "package-clean": "pnpm rm zenstack @zenstackhq/runtime @zenstackhq/server @zenstackhq/tanstack-query",
    "up": "pnpm run package-clean && pnpm install -D zenstack@latest && pnpm install @zenstackhq/runtime@latest @zenstackhq/server@latest @zenstackhq/tanstack-query@latest",
@AlekseiAQ AlekseiAQ changed the title Zod Schemas Are Not Available in browser on Vercel Zod Schemas Are Not Available in Browser (when build on Vercel) Nov 12, 2024
@AlekseiAQ AlekseiAQ changed the title Zod Schemas Are Not Available in Browser (when build on Vercel) Zod Schemas Are Not Available via Browser (when build on Vercel) Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant