-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Change page export validity check on client and server in development #5857
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
Conversation
Yes we should definitely add that test. Also a test for |
So these two fail:
You can run them using:
|
Thanks for this 👍 I think we also need to update lib/router/router.js: https://github.com/zeit/next.js/blob/82c5cc38d59e65d98c74f5012c3780e2832880c6/packages/next-server/lib/router/router.js#L263-L265 |
-_- the tests are failing, but the error is firing correctly? |
I just investigated why the tests failed and realized that you had changed the value of |
I am trying to upgrade my reason-react project from 7.0.2 to latest canary and getting |
Resolves #4055
Credit: #5095
I didn't use the ignore webpack plugin from the original PR and tested bundle size with #5339 - seems to be safe on that front.
Was able to get tests to pass locally, unsure of what goes wrong in CI 🤷♂️
Questions
The initial PR didn't include changes to
next-server/lib/router
ingetRouteInfo()
. Should the same changes be made within?Should we add a test for rendering a component created via
forwardRef()
?component-with-forwardedRef
:some test: