You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nextjs claims to support every deployment mode.
However, there is something which works out of the box with React Router and Tanstack Start is not supported on NextJs for unknown reasons.
When attempting to implement this on Nextjs - I ran into two conflicting errors.
[Error: Page "/products/view-product/[productSlug]/page" cannot use both "use client" and export function "generateStaticParams()".] {
type: 'Error'
}
[Error: Page "/products/view-product/[productSlug]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.]
Proposal
I believe the Pages Router supports this at least in development. So, in a way, this is a bit of a regression.
For now, the only way to work around this is to move to the less familiar React Router which I have done.
But that means I have to lose out on all the other NextJs features that like automatic image optimization as well as other features should I eventually decide SSR is the better strategy.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Nextjs claims to support every deployment mode.
However, there is something which works out of the box with React Router and Tanstack Start is not supported on NextJs for unknown reasons.
When attempting to implement this on Nextjs - I ran into two conflicting errors.
Proposal
I believe the Pages Router supports this at least in development. So, in a way, this is a bit of a regression.
For now, the only way to work around this is to move to the less familiar React Router which I have done.
But that means I have to lose out on all the other NextJs features that like automatic image optimization as well as other features should I eventually decide SSR is the better strategy.
Beta Was this translation helpful? Give feedback.
All reactions