Show invalid default export errors during prerendering (#84242)
The specific error messages for invalid default exports in pages,
layouts, and error files were only shown in development mode. This
change ensures that these errors are also displayed during prerendering,
which replaces the unhelpful error messages we were seeing before.
Improving these error messages is the subject of #76330.
closes NAR-272