https://github.com/devjiwonchoi/repro-next-cache-component-static-metadata
https://github.com/devjiwonchoi/repro-next-cache-component-static-metadata
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/devjiwonchoi/repro-next-cache-component-static-metadata
- Owner: devjiwonchoi
- Created: 2025-08-07T00:13:50.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-07T01:49:08.000Z (11 months ago)
- Last Synced: 2025-10-19T10:56:48.408Z (8 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Next Info:
```
Node.js v20.18.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:28:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6030
Available memory (MB): 36864
Available CPU cores: 12
Binaries:
Node: 20.18.0
npm: 10.8.2
Yarn: N/A
pnpm: 8.15.9
Relevant Packages:
next: 15.4.2-canary.32 // Latest available version is detected (15.4.2-canary.32).
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.9.2
Next.js Config:
output: N/A
```
Steps to reproduce:
> Has `experimental.cacheComponents` enabled.
```
pnpm i && pnpm build
```
Receive the following error:
```
Route "/dynamic/[id]" has a `generateMetadata` that depends on Request data (`cookies()`, etc...) or uncached external data (`fetch(...)`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata
Error occurred prerendering page "/dynamic/[id]". Read more: https://nextjs.org/docs/messages/prerender-error
Export encountered an error on /dynamic/[id]/page: /dynamic/[id], exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
```