-
Notifications
You must be signed in to change notification settings - Fork 28.2k
generateStaticParams() not detected when using parallel routes / dynamic routes using output: export #63951
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
Comments
Can confirm, I have the same issue for basically the same use case. For what it's worth:
|
Any Progress or updates? This issue is super dumb especially if vercel wants to ease people into using nextjs from an old codebase or vite. |
Not that I know of. Still broken in 14.2.1-canary.6 |
I am experiencing this issue as well and I am using app router |
My page heavily uses parallel routing, which ultimately ends in just having dynamic rendering and no SSR at all. So adding this feature would be really beneficial -> https://patrick-arns.de |
Looks like this issue is wrongfully tagged as pages router. I did say in the post its an app router bug. |
this should be a hi-pri fix, it makes parallel routes useless for a number of important use cases, e.g. an edit modal that takes an id in the path |
I agree. Modals in general don't work due to this, the minimal I attached is their own example. |
This comment has been minimized.
This comment has been minimized.
Not yet but I'm hoping #65348 might also fix this. Edit: checked canary up to [15.0.0-canary.19]. Bug still present. |
Present in 15.0.0-canary.37 |
This bug is present regardless of which output mode is used in next 14.2.5. If you use a catchAll route |
Any updates on resolving this bug? I am experiencing the same build errors related to my parallel intercepting routes with my static application that I build with next.config |
Updated the minimal to use next-async-request-api and to the latest canary 15.0.1-canary.0. |
Still seeing this on For me the error goes away if I comment out Possibly related:
|
Same here. I need static pages with i18n. The error occurs even if I put the generateStaticParams where were suggested. |
This comment has been minimized.
This comment has been minimized.
I can confirm i am getting the same
Any workaround or help is appreciated. Thank you ! |
This comment has been minimized.
This comment has been minimized.
This issue is still occuring as of v15.1.4, even when using standard output settings (non export). |
Updated the minimal to use 15.1.5. Things have changed. There's no longer errors when using the dev server and both navigation to a new tab or modal work. What I think should happen:
I do think this is a step in the right direction. No more errors, functional when running pnpm dev, feels like we're this close to having modals work with static exports. |
Hi all, thank you for the report! Parallel routes should work fine with Rewrites are one of the things that we've documented as not being supported by We'd like to support as many features as possible with |
Thanks for your response and explanation ztanner. |
@ztanner thanks for your explanation. |
If you aren't interested in the interception behavior of modals, then you can implement the modal with a parallel route. Interception routes are only necessary if the goal is to show a different experience when performing a client navigation (eg soft nav) vs landing directly on the page. The former will show the interception route, the latter will show the underlying page component. If you don't need that behavior, then you're able to implement the modal pattern with parallel routes and Here's an example: https://stackblitz.com/edit/nextjs-c5zar9uk?file=app%2Fpage.tsx
I can't really determine that from your message: it'd be best to open a new issue with a minimal reproduction if your case isn't working, and you're not using intercepting routes + |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/KoenLemmen/nextgramminimal/
To Reproduce
As can be seen in @modal/(.)photos/[id] the exported function is present.
Current vs. Expected behavior
Current behavior:
Expected behavior:
Provide environment information
Operating System: Platform: win32 Arch: x64 Version: Windows 10 Pro Available memory (MB): 65463 Available CPU cores: 24 Binaries: Node: 20.8.1 npm: N/A Yarn: N/A pnpm: N/A Relevant Packages: next: 14.2.0-canary.51 // Latest available version is detected (14.2.0-canary.51). eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.3 Next.js Config: output: export
Which area(s) are affected? (Select all that apply)
App Router, Data fetching (gS(S)P, getInitialProps), Static HTML Export (output: "export")
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
Unsure but might be related to: #52842
NEXT-3296
The text was updated successfully, but these errors were encountered: