Change page export validity check on client and server in development#5857
Change page export validity check on client and server in development#5857timneutkens merged 17 commits intovercel:canaryfrom kylemh:canary
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/routeringetRouteInfo(). Should the same changes be made within?Should we add a test for rendering a component created via
forwardRef()?component-with-forwardedRef:some test: