-
Notifications
You must be signed in to change notification settings - Fork 29k
Closed
Closed
Copy link
Labels
linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.5.0
Binaries:
Node: 18.17.1
pnpm: 8.6.12
Relevant Packages:
next: 13.4.20-canary.2
react: 18.2.0
react-dom: 18.2.0
Next.js Config:
output: export
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router, Static HTML Export (output: "export")
Link to the code that reproduces this issue or a replay of the bug
https://github.com/curated-tests/next-issue-48022
To Reproduce
The page in question is /app/blog-app/[slug]/page.tsx
next build
Describe the Bug
Fails with an error:
Error: Page "/blog-app/[slug]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.
This is expected right now because its not implemented, but it would be nice to support this so that App Router can match Pages Router.
Expected Behavior
Ideally, the build should complete and navigation should work client side.
pnpm build
cd out
python3 -m http.server 3000
- Visit http://localhost:3000
- Click on Blog App (
/blog-app/
) - Click on One (
/blog-app/one
) - Should render the page on the client
Which browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
python3 -m http.server 3000
viliket, segiddins, lucasterra, nareshbhatia, friedjoff and 127 moreSukkaW and aniket-kulkarnijoaopedrodcf, viphakorn, tischrei, I0T-4-L1F3, steida and 2 more
Metadata
Metadata
Assignees
Labels
linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.