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

useMemoCache is not a function on Vercel with Next Canary #10369

Open
Dan6erbond opened this issue Jan 6, 2025 · 0 comments
Open

useMemoCache is not a function on Vercel with Next Canary #10369

Dan6erbond opened this issue Jan 6, 2025 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@Dan6erbond
Copy link

Describe the Bug

I'm on the Next canary branch, and after figuring out how to get Payload to work with dynamicIO enabled once my app is deployed on Vercel I see this error in the logs:

 TypeError: n.H.useMemoCache is not a function
    at W (.next/server/app/(payload)/admin/[[...segments]]/page.js:81:5202) {
  digest: '1619017580'
}

I've tried enabling/disabling the React compiler since it seems useMemoCache is a replacement function it creates, but that didn't help. I also tried using annotation mode to make the compiler opt-in.

Link to the code that reproduces this issue

https://github.com/Dan6erbond/portfolio

Reproduction Steps

  1. Install dependencies with pnpm i
  2. Copy .env.example to .env
  3. Start Postgres using Docker compose
  4. Build the app with pnpm build
  5. Start the server with pnpm start

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

> [email protected] payload C:\Users\morav\Documents\Projects\portfolio
> cross-env NODE_OPTIONS=--no-deprecation payload "info"


Binaries:
  Node: 18.20.4
  npm: N/A
  Yarn: N/A
  pnpm: 8.3.1
Relevant Packages:
  payload: 3.14.0
  next: 15.1.1-canary.25
  @payloadcms/db-postgres: 3.14.0
  @payloadcms/email-nodemailer: 3.14.0
  @payloadcms/graphql: 3.14.0
  @payloadcms/next/utilities: 3.14.0
  @payloadcms/payload-cloud: 3.14.0
  @payloadcms/plugin-cloud-storage: 3.14.0
  @payloadcms/richtext-lexical: 3.14.0
  @payloadcms/storage-vercel-blob: 3.14.0
  @payloadcms/translations: 3.14.0
  @payloadcms/ui/shared: 3.14.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 32440
  Available CPU cores: 20
@Dan6erbond Dan6erbond added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Jan 6, 2025
@Dan6erbond Dan6erbond changed the title useMemoCache is not a function on Vercel with Next Canary useMemoCache is not a function on Vercel with Next Canary Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant