Open geotrev opened 1 year ago
Within the "app" folder, please run "npm install" and tell me if it installs "styled-jsx" and if your problem is fixed.
Quick clarification: styled-jsx
is unrelated to the problem I’m reporting and only comes up when next canary is installed. I’m not sure why that error is occurring, and only included it to fulfill the “verify canary release” requirement. 😅
@geotrev be that as it may, let's try it anyway and see if it helps you. Sometimes, seemingly unrelated problems are actually related.
And if I turn out to be wrong, we'll need to look at your error log to diagnose the issue.
@moonman239 unfortunately, it doesn't look like npm install
at the root or in app/
changed anything. I also tried manual install of styled-jsx
, but no luck. Here is a screenshot of the result (again, this is only when using next@canary
):
So, I guess a fair thing to say right now is I'm seeing two distinct errors, one when I'm on the canary build, and then another when I'm on the non-canary build related to searchParams
.
Appreciate the quick responses btw!
EDIT: referring to the above separate bugs, here are the reproduction branches in my example repo:
main
: next@canary bug test/server-page
: searchParams
bug using app/test/page.tsx
test/dynamic-page
: searchParams
bug, but with force-dynamic
, using app/test/page.tsx
Link to the code that reproduces this issue or a replay of the bug
https://github.com/geotrev/next-server-search-params
To Reproduce
app/<route>/page.tsx
filesearchParams
next build
)This occurs with or without the use of this metadata export:
See both live examples here:
force-dynamic
: linkforce-dynamic
: linkCurrent vs. Expected behavior
Current: Page throws 500 internal server error
Expected: page loads normally.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Additional context
This is a netlify + next deploy as shown in the reproduction repo.
The latest canary release has a completely new error:
Stack trace: