<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">When an exception is thrown inside a page's <code class="notranslate">getInitialProps()</code> the stack trace shows internal Babel <code class="notranslate">regenerator-runtime</code> code instead of recognisable app code. This make it hard to debug.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Throw an <code class="notranslate">Error</code> inside <code class="notranslate">getInitialProps()</code></li>
<li>See stack-trace like above.</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">A stack trace that shows library and application code only, not transpiled code.</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1020551/44616729-f3703c80-a84c-11e8-9d29-b2d929edc3c7.png"><img width="931" alt="image" src="https://user-images.githubusercontent.com/1020551/44616729-f3703c80-a84c-11e8-9d29-b2d929edc3c7.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>Version of Next.js: <code class="notranslate">6.1.1</code></li>
</ul>
<p dir="auto">Opening this issue to keep track of the different scenarios where we render unhelpful error messages</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <strong>Error after navigation</strong></li>
</ul>
<p dir="auto">When I perform a navigation and the new page contains an error, we see a stack trace that references "hot-update" and other inaccessible locations</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13041/41496602-5434fe02-70f8-11e8-99a6-2a4a58051524.png"><img width="882" alt="image" src="https://user-images.githubusercontent.com/13041/41496602-5434fe02-70f8-11e8-99a6-2a4a58051524.png" style="max-width: 100%;"></a></p>
<details>
<pre class="notranslate">this.props.team is null
<p dir="auto">render@<a href="http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:898:1" rel="nofollow">http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:898:1</a><br>
finishClassComponent@<a href="http://localhost:3000/_next/static/commons/main.js:19238:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19238:22</a><br>
updateClassComponent@<a href="http://localhost:3000/_next/static/commons/main.js:19215:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19215:12</a><br>
beginWork@<a href="http://localhost:3000/_next/static/commons/main.js:19589:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19589:16</a><br>
performUnitOfWork@<a href="http://localhost:3000/_next/static/commons/main.js:21580:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21580:16</a><br>
workLoop@<a href="http://localhost:3000/_next/static/commons/main.js:21644:26" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21644:26</a><br>
callCallback@<a href="http://localhost:3000/_next/static/commons/main.js:11876:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11876:9</a><br>
invokeGuardedCallbackDev@<a href="http://localhost:3000/_next/static/commons/main.js:11915:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11915:7</a><br>
invokeGuardedCallback@<a href="http://localhost:3000/_next/static/commons/main.js:11772:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11772:5</a><br>
renderRoot@<a href="http://localhost:3000/_next/static/commons/main.js:21722:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21722:7</a><br>
performWorkOnRoot@<a href="http://localhost:3000/_next/static/commons/main.js:22336:24" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22336:24</a><br>
performWork@<a href="http://localhost:3000/_next/static/commons/main.js:22288:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22288:7</a><br>
requestWork@<a href="http://localhost:3000/_next/static/commons/main.js:22197:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22197:7</a><br>
scheduleWorkImpl@<a href="http://localhost:3000/_next/static/commons/main.js:22080:11" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22080:11</a><br>
scheduleWork@<a href="http://localhost:3000/_next/static/commons/main.js:22042:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22042:12</a><br>
scheduleTopLevelUpdate@<a href="http://localhost:3000/_next/static/commons/main.js:22513:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22513:5</a><br>
updateContainer@<a href="http://localhost:3000/_next/static/commons/main.js:22551:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22551:7</a><br>
renderSubtreeIntoContainer@<a href="http://localhost:3000/_next/static/commons/main.js:26571:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:26571:5</a><br>
render@<a href="http://localhost:3000/_next/static/commons/main.js:26632:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:26632:12</a><br>
renderReactElement@<a href="http://localhost:3000/_next/static/commons/main.js:6934:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6934:5</a><br>
_callee5$@<a href="http://localhost:3000/_next/static/commons/main.js:6905:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6905:13</a><br>
tryCatch@<a href="http://localhost:3000/_next/static/commons/main.js:28441:37" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28441:37</a><br>
invoke@<a href="http://localhost:3000/_next/static/commons/main.js:28675:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28675:22</a><br>
defineIteratorMethods/&lt;/prototype[method]@<a href="http://localhost:3000/_next/static/commons/main.js:28493:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28493:16</a><br>
step@<a href="http://localhost:3000/_next/static/commons/main.js:213:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:213:22</a><br>
_next@<a href="http://localhost:3000/_next/static/commons/main.js:228:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:228:9</a><br>
_asyncToGenerator/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:235:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:235:7</a><br>
Promise@<a href="http://localhost:3000/_next/static/commons/main.js:3455:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:3455:7</a><br>
_asyncToGenerator/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:208:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:208:12</a><br>
doRender@<a href="http://localhost:3000/_next/static/commons/main.js:6804:10" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6804:10</a><br>
_callee2$@<a href="http://localhost:3000/_next/static/commons/main.js:6710:20" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6710:20</a><br>
tryCatch@<a href="http://localhost:3000/_next/static/commons/main.js:28441:37" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28441:37</a><br>
invoke@<a href="http://localhost:3000/_next/static/commons/main.js:28675:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28675:22</a><br>
defineIteratorMethods/&lt;/prototype[method]@<a href="http://localhost:3000/_next/static/commons/main.js:28493:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28493:16</a><br>
step@<a href="http://localhost:3000/_next/static/commons/main.js:213:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:213:22</a><br>
_next@<a href="http://localhost:3000/_next/static/commons/main.js:228:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:228:9</a><br>
_asyncToGenerator/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:235:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:235:7</a><br>
Promise@<a href="http://localhost:3000/_next/static/commons/main.js:3455:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:3455:7</a><br>
_asyncToGenerator/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:208:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:208:12</a><br>
render@<a href="http://localhost:3000/_next/static/commons/main.js:6682:10" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6682:10</a><br>
_callee$/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:6651:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6651:13</a><br>
notify/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:9156:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:9156:16</a><br>
./node_modules/core-js/library/modules/_collection.js/module.exports/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:1422:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:1422:22</a><br>
notify@<a href="http://localhost:3000/_next/static/commons/main.js:9155:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:9155:7</a><br>
update@<a href="http://localhost:3000/_next/static/commons/main.js:8552:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:8552:9</a><br>
./pages/onboarding/learn.js/&lt;/&lt;@<a href="http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:1719:11" rel="nofollow">http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:1719:11</a><br>
./pages/onboarding/learn.js/&lt;@<a href="http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:1706:6" rel="nofollow">http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:1706:6</a><br>
./pages/onboarding/learn.js@<a href="http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:110:29" rel="nofollow">http://localhost:3000/_next/webpack/5.76e8d31f45e88bbee132.hot-update.js:110:29</a><br>
<strong>webpack_require</strong>@<a href="http://localhost:3000/_next/static/commons/manifest.js:715:13" rel="nofollow">http://localhost:3000/_next/static/commons/manifest.js:715:13</a><br>
hotApply@<a href="http://localhost:3000/_next/static/commons/manifest.js:637:14" rel="nofollow">http://localhost:3000/_next/static/commons/manifest.js:637:14</a><br>
cb@<a href="http://localhost:3000/_next/static/commons/main.js:33403:25" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:33403:25</a><br>
check/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:33419:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:33419:13</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="in App
in ErrorBoundary"><pre class="notranslate"><code class="notranslate">in App
in ErrorBoundary
</code></pre></div>
<p dir="auto"></p></pre></details><p dir="auto"></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <strong>Dynamic components error</strong></li>
</ul>
<p dir="auto">After a while, without taking action, one of our dynamic components shows a stacktrace that forces us to refresh:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13041/41556703-62256228-72f0-11e8-91c7-84a09e599ed3.png"><img width="1440" alt="image" src="https://user-images.githubusercontent.com/13041/41556703-62256228-72f0-11e8-91c7-84a09e599ed3.png" style="max-width: 100%;"></a></p>
<details><pre class="notranslate">Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `FeedbackInput`.
<p dir="auto">invariant@<a href="http://localhost:3000/_next/static/commons/main.js:5227:15" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:5227:15</a><br>
createFiberFromElement@<a href="http://localhost:3000/_next/static/commons/main.js:17087:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:17087:5</a><br>
reconcileSingleElement@<a href="http://localhost:3000/_next/static/commons/main.js:18888:23" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:18888:23</a><br>
reconcileChildFibers@<a href="http://localhost:3000/_next/static/commons/main.js:18992:35" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:18992:35</a><br>
reconcileChildrenAtExpirationTime@<a href="http://localhost:3000/_next/static/commons/main.js:19116:30" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19116:30</a><br>
reconcileChildren@<a href="http://localhost:3000/_next/static/commons/main.js:19107:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19107:5</a><br>
updateHostComponent@<a href="http://localhost:3000/_next/static/commons/main.js:19360:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19360:5</a><br>
beginWork@<a href="http://localhost:3000/_next/static/commons/main.js:19593:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:19593:16</a><br>
performUnitOfWork@<a href="http://localhost:3000/_next/static/commons/main.js:21580:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21580:16</a><br>
workLoop@<a href="http://localhost:3000/_next/static/commons/main.js:21644:26" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21644:26</a><br>
callCallback@<a href="http://localhost:3000/_next/static/commons/main.js:11876:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11876:9</a><br>
invokeGuardedCallbackDev@<a href="http://localhost:3000/_next/static/commons/main.js:11915:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11915:7</a><br>
invokeGuardedCallback@<a href="http://localhost:3000/_next/static/commons/main.js:11772:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:11772:5</a><br>
renderRoot@<a href="http://localhost:3000/_next/static/commons/main.js:21722:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:21722:7</a><br>
performWorkOnRoot@<a href="http://localhost:3000/_next/static/commons/main.js:22336:24" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22336:24</a><br>
performWork@<a href="http://localhost:3000/_next/static/commons/main.js:22288:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22288:7</a><br>
requestWork@<a href="http://localhost:3000/_next/static/commons/main.js:22197:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22197:7</a><br>
scheduleWorkImpl@<a href="http://localhost:3000/_next/static/commons/main.js:22080:11" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22080:11</a><br>
scheduleWork@<a href="http://localhost:3000/_next/static/commons/main.js:22042:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22042:12</a><br>
scheduleTopLevelUpdate@<a href="http://localhost:3000/_next/static/commons/main.js:22513:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22513:5</a><br>
updateContainer@<a href="http://localhost:3000/_next/static/commons/main.js:22551:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:22551:7</a><br>
renderSubtreeIntoContainer@<a href="http://localhost:3000/_next/static/commons/main.js:26571:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:26571:5</a><br>
render@<a href="http://localhost:3000/_next/static/commons/main.js:26632:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:26632:12</a><br>
renderReactElement@<a href="http://localhost:3000/_next/static/commons/main.js:6934:5" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6934:5</a><br>
_callee5$@<a href="http://localhost:3000/_next/static/commons/main.js:6905:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6905:13</a><br>
tryCatch@<a href="http://localhost:3000/_next/static/commons/main.js:28441:37" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28441:37</a><br>
invoke@<a href="http://localhost:3000/_next/static/commons/main.js:28675:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28675:22</a><br>
defineIteratorMethods/&lt;/prototype[method]@<a href="http://localhost:3000/_next/static/commons/main.js:28493:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28493:16</a><br>
step@<a href="http://localhost:3000/_next/static/commons/main.js:213:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:213:22</a><br>
_next@<a href="http://localhost:3000/_next/static/commons/main.js:228:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:228:9</a><br>
_asyncToGenerator/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:235:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:235:7</a><br>
Promise@<a href="http://localhost:3000/_next/static/commons/main.js:3455:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:3455:7</a><br>
_asyncToGenerator/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:208:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:208:12</a><br>
doRender@<a href="http://localhost:3000/_next/static/commons/main.js:6804:10" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6804:10</a><br>
_callee2$@<a href="http://localhost:3000/_next/static/commons/main.js:6710:20" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6710:20</a><br>
tryCatch@<a href="http://localhost:3000/_next/static/commons/main.js:28441:37" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28441:37</a><br>
invoke@<a href="http://localhost:3000/_next/static/commons/main.js:28675:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28675:22</a><br>
defineIteratorMethods/&lt;/prototype[method]@<a href="http://localhost:3000/_next/static/commons/main.js:28493:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:28493:16</a><br>
step@<a href="http://localhost:3000/_next/static/commons/main.js:213:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:213:22</a><br>
_next@<a href="http://localhost:3000/_next/static/commons/main.js:228:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:228:9</a><br>
_asyncToGenerator/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:235:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:235:7</a><br>
Promise@<a href="http://localhost:3000/_next/static/commons/main.js:3455:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:3455:7</a><br>
_asyncToGenerator/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:208:12" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:208:12</a><br>
render@<a href="http://localhost:3000/_next/static/commons/main.js:6682:10" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6682:10</a><br>
_callee$/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:6651:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:6651:13</a><br>
notify/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:9156:16" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:9156:16</a><br>
./node_modules/core-js/library/modules/_collection.js/module.exports/&lt;/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:1422:22" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:1422:22</a><br>
notify@<a href="http://localhost:3000/_next/static/commons/main.js:9155:7" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:9155:7</a><br>
update@<a href="http://localhost:3000/_next/static/commons/main.js:8552:9" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:8552:9</a><br>
./pages/account/identity.js/&lt;/&lt;@<a href="http://localhost:3000/_next/-/page/account/identity.js:17672:11" rel="nofollow">http://localhost:3000/_next/-/page/account/identity.js:17672:11</a><br>
./pages/account/identity.js/&lt;@<a href="http://localhost:3000/_next/-/page/account/identity.js:17659:6" rel="nofollow">http://localhost:3000/_next/-/page/account/identity.js:17659:6</a><br>
./pages/account/identity.js@<a href="http://localhost:3000/_next/-/page/account/identity.js:17424:29" rel="nofollow">http://localhost:3000/_next/-/page/account/identity.js:17424:29</a><br>
<strong>webpack_require</strong>@<a href="http://localhost:3000/_next/static/commons/manifest.js:715:13" rel="nofollow">http://localhost:3000/_next/static/commons/manifest.js:715:13</a><br>
hotApply@<a href="http://localhost:3000/_next/static/commons/manifest.js:637:14" rel="nofollow">http://localhost:3000/_next/static/commons/manifest.js:637:14</a><br>
cb@<a href="http://localhost:3000/_next/static/commons/main.js:33403:25" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:33403:25</a><br>
check/&lt;@<a href="http://localhost:3000/_next/static/commons/main.js:33419:13" rel="nofollow">http://localhost:3000/_next/static/commons/main.js:33419:13</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="in App
in ErrorBoundary"><pre class="notranslate"><code class="notranslate">in App
in ErrorBoundary
</code></pre></div>
<p dir="auto"></p></pre></details><p dir="auto"></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <strong>Error when referencing an <code class="notranslate">undefined</code> component</strong></li>
</ul>
<p dir="auto">In this case I imported a component that wasn't properly exported (as <code class="notranslate">default</code>). The strangest of errors resulted:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13041/41578788-c92591e8-7348-11e8-9d85-4873d1fdd90b.png"><img width="1194" alt="image" src="https://user-images.githubusercontent.com/13041/41578788-c92591e8-7348-11e8-9d85-4873d1fdd90b.png" style="max-width: 100%;"></a></p>
<details>
Cannot read property 'toLowerCase' of undefined
<p dir="auto">TypeError: Cannot read property 'toLowerCase' of undefined<br>
at ReactDOMServerRenderer.renderDOM (/Users/rauchg/Projects/front/node_modules/react-dom/cjs/react-dom-server.node.development.js:2287:28)<br>
at ReactDOMServerRenderer.render (/Users/rauchg/Projects/front/node_modules/react-dom/cjs/react-dom-server.node.development.js:2281:21)<br>
at ReactDOMServerRenderer.read (/Users/rauchg/Projects/front/node_modules/react-dom/cjs/react-dom-server.node.development.js:2217:19)<br>
at renderToString (/Users/rauchg/Projects/front/node_modules/react-dom/cjs/react-dom-server.node.development.js:2484:25)<br>
at renderPage (/Users/rauchg/Projects/front/node_modules/next/dist/server/render.js:275:26)<br>
at Function.getInitialProps (/Users/rauchg/Projects/front/node_modules/next/dist/server/document.js:67:25)<br>
at _callee$ (/Users/rauchg/Projects/front/node_modules/next/dist/lib/utils.js:111:30)<br>
at tryCatch (/Users/rauchg/Projects/front/node_modules/regenerator-runtime/runtime.js:62:40)<br>
at Generator.invoke [as _invoke] (/Users/rauchg/Projects/front/node_modules/regenerator-runtime/runtime.js:296:22)<br>
at Generator.prototype.(anonymous function) [as next] (/Users/rauchg/Projects/front/node_modules/regenerator-runtime/runtime.js:114:21)<br>
at step (/Users/rauchg/Projects/front/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)<br>
at _next (/Users/rauchg/Projects/front/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)<br>
at /Users/rauchg/Projects/front/node_modules/@babel/runtime/helpers/asyncToGenerator.js:34:7<br>
at new Promise ()<br>
at new F (/Users/rauchg/Projects/front/node_modules/core-js/library/modules/_export.js:36:28)<br>
at /Users/rauchg/Projects/front/node_modules/@babel/runtime/helpers/asyncToGenerator.js:7:12</p>
</details>