2019-06-14 02:08:19 +02:00
# Page Without Valid React Component
#### Why This Error Occurred
2019-10-11 16:39:38 +02:00
A page that does not export a valid React Component was found while analyzing the build output.
This is a hard error because the page would error when rendered, and causes poor build performance.
2019-06-14 02:08:19 +02:00
#### Possible Ways to Fix It
2019-10-11 16:39:38 +02:00
Investigate the list of page(s) specified in the error message.
For each, you'll want to check if the file is meant to be a page.
If the file is not meant to be a page, and instead, is a shared component or file, move the file to a different folder like `components` or `lib` .
2020-07-10 20:44:17 +02:00
If the file is meant to be a page, double check you have an `export default` with the React Component instead of an `export` . If you're already using `export default` , make sure the returned value is a valid React Component.