rsnext/errors/page-without-valid-component.md
JJ Kasper 090a06bb2c
Add handling for invalid pages during autoExport (#7574)
* Add handling for invalid pages during autoExport

* Add err.sh link for invalid page export

* Fix typo

* Apply suggestions from code review

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
2019-06-13 17:08:19 -07:00

394 B

Page Without Valid React Component

Why This Error Occurred

While auto exporting a page a valid React Component wasn't found. This could mean you have a file in pages that exports something that is not a React Component.

Possible Ways to Fix It

Move any non-page files that don't export a React Component as the default export to a different folder like components or lib.