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

Cannot read properties of undefined (reading '$create') when deployed in VERCEL #3536

Closed
dawangraoming opened this issue Jul 14, 2022 · 2 comments
Labels
kind/bug Something isn't working status/done

Comments

@dawangraoming
Copy link

What is the problem?

when I try to deploy in vercel, all CICD is successful.

But when I request the login API, show this error.

Cannot read properties of undefined (reading '$create')

Paste all your error logs here:

Loaded env from .env
2022-07-14 18:51:52.680 
INFO
  login() Starting with input: 
2022-07-14 18:51:53.481 
ERROR
 login() 
 TypeError 
 Cannot read properties of undefined (reading '$create')
error stack:
• 
login.js
:
74
 <anonymous>
.next/serverless/pages/api/rpc/login.js:74:21

Paste all relevant code snippets here:

Use blitz new 

What are detailed steps to reproduce this?

Run blitz -v and paste the output here:

its my local version, not vercel's

blitz: 0.45.4 (global)
blitz: 0.45.4 (local)

  Package manager: yarn
  System:
    OS: macOS 12.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 150.11 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    blitz: 0.45.4 => 0.45.4
    prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    react: 18.0.0 => 18.0.0
    react-dom: 18.0.0 => 18.0.0
    typescript: ~4.5 => 4.5.5

Please include below any other applicable logs and screenshots that show your problem:

No response

@dawangraoming dawangraoming added kind/bug Something isn't working status/triage labels Jul 14, 2022
@dawangraoming
Copy link
Author

image

@beerose
Copy link
Contributor

beerose commented Jul 18, 2022

Closing in favor of blitz-js/legacy-framework#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/done
Projects
None yet
Development

No branches or pull requests

3 participants