<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<hr>
<p dir="auto">Hi,</p>
<p dir="auto">I tried this example : <a href="https://github.com/zeit/next.js/tree/canary/examples/with-componentdidcatch">with-componentdidcatch</a></p>
<p dir="auto">Basically, it's using <code class="notranslate">componentDidCatch</code> in the new <code class="notranslate">_app.js</code>. It intercepts the errors and does a <code class="notranslate">console.log</code> when it intercepts one :</p>
<p dir="auto"><a href="https://github.com/zeit/next.js/blob/02bcfb21c81bbc0f76ec8af22d4197952bd9bc15/examples/with-componentdidcatch/pages/_app.js#L3-L9">https://github.com/zeit/next.js/blob/02bcfb21c81bbc0f76ec8af22d4197952bd9bc15/examples/with-componentdidcatch/pages/_app.js#L3-L9</a></p>
<h2 dir="auto">Expected Behavior</h2>
<ul dir="auto">
<li>I see <code class="notranslate">CUSTOM ERROR HANDLING</code> in the server logs</li>
</ul>
<h2 dir="auto">Current Behavior</h2>
<ul dir="auto">
<li>I don't see <code class="notranslate">CUSTOM ERROR HANDLING</code> in the logs
<ul dir="auto">
<li>it's not in server logs</li>
<li>it's not in client logs</li>
</ul>
</li>
</ul>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx create-next-app --example with-componentdidcatch with-componentdidcatch-app
cd with-componentdidcatch-app
yarn dev"><pre class="notranslate"><code class="notranslate">npx create-next-app --example with-componentdidcatch with-componentdidcatch-app
cd with-componentdidcatch-app
yarn dev
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">The bigger picture here is trying to use error boundaries with next.js.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>6.0.0</td>
</tr>
<tr>
<td>node</td>
<td>9.8.0</td>
</tr>
</tbody>
</table>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>


<p dir="auto">Normal start of nextjs</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">I can't start my server after a update (npm update), I only get this error-message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error  in ./~/next/dist/pages/_document.js?entry

Module build failed: Error: Cannot find module 'string-hash' (While processing preset: &quot;/../node_modules/next/dist/server/build/babel/preset.js&quot;)
"><pre class="notranslate"><code class="notranslate"> error  in ./~/next/dist/pages/_document.js?entry

Module build failed: Error: Cannot find module 'string-hash' (While processing preset: "/../node_modules/next/dist/server/build/babel/preset.js")

</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>install nextjs (2.4.6) everything works fine</li>
<li>update to the latest version, i get the error-message and the app won't start</li>
</ol>
<h2 dir="auto">Context</h2>


<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>2.4.9</td>
</tr>
<tr>
<td>node</td>
<td>7.9.0</td>
</tr>
<tr>
<td>OS</td>
<td>ubuntu</td>
</tr>
</tbody>
</table>
<p dir="auto">npm- dependencies:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    &quot;async&quot;: &quot;^2.5.0&quot;,
    &quot;boom&quot;: &quot;^4.3.1&quot;,
    &quot;chart.js&quot;: &quot;^2.5.0&quot;,
    &quot;cookie&quot;: &quot;^0.3.1&quot;,
    &quot;es6-promise&quot;: &quot;^4.1.1&quot;,
    &quot;form-data&quot;: &quot;^2.1.4&quot;,
    &quot;good&quot;: &quot;^7.1.0&quot;,
    &quot;h2o2&quot;: &quot;^5.4.0&quot;,
    &quot;hapi&quot;: &quot;^16.1.1&quot;,
    &quot;hapi-auth-basic&quot;: &quot;^4.2.0&quot;,
    &quot;immutability-helper&quot;: &quot;^2.3.0&quot;,
    &quot;joi-browser&quot;: &quot;^10.0.6&quot;,
    &quot;lodash&quot;: &quot;^4.17.4&quot;,
    &quot;log4js&quot;: &quot;^1.1.1&quot;,
    &quot;moment&quot;: &quot;^2.18.1&quot;,
    &quot;next&quot;: &quot;2.4.6&quot;,
    &quot;next-redux-saga&quot;: &quot;^1.0.1&quot;,
    &quot;next-redux-wrapper&quot;: &quot;^1.2.0&quot;,
    &quot;qs&quot;: &quot;^6.5.0&quot;,
    &quot;rc-pagination&quot;: &quot;^1.9.8&quot;,
    &quot;react&quot;: &quot;^15.6.1&quot;,
    &quot;react-async-script-loader&quot;: &quot;^0.2.2&quot;,
    &quot;react-chartjs2&quot;: &quot;^1.1.1&quot;,
    &quot;react-countup&quot;: &quot;^2.0.3&quot;,
    &quot;react-cropper&quot;: &quot;^0.12.0&quot;,
    &quot;react-cropperjs&quot;: &quot;^1.2.5&quot;,
    &quot;react-datepicker&quot;: &quot;^0.46.0&quot;,
    &quot;react-datetime&quot;: &quot;^2.8.10&quot;,
    &quot;react-dom&quot;: &quot;^15.6.1&quot;,
    &quot;react-dropzone&quot;: &quot;^3.13.3&quot;,
    &quot;react-image-crop&quot;: &quot;^2.0.3&quot;,
    &quot;react-no-ssr&quot;: &quot;^1.1.0&quot;,
    &quot;react-notification-system&quot;: &quot;^0.2.13&quot;,
    &quot;react-redux&quot;: &quot;^5.0.5&quot;,
    &quot;react-swal&quot;: &quot;^2.0.0&quot;,
    &quot;redux&quot;: &quot;^3.7.2&quot;,
    &quot;redux-actions&quot;: &quot;^2.2.1&quot;,
    &quot;redux-devtools-extension&quot;: &quot;^2.13.2&quot;,
    &quot;redux-saga&quot;: &quot;0.15.4&quot;,
    &quot;redux-thunk&quot;: &quot;^2.2.0&quot;,
    &quot;request&quot;: &quot;^2.81.0&quot;,
    &quot;request-promise&quot;: &quot;^4.2.0&quot;,
    &quot;semantic-ui-react&quot;: &quot;^0.67.1&quot;,
    &quot;socket.io&quot;: &quot;^2.0.3&quot;,
    &quot;socket.io-client&quot;: &quot;^2.0.3&quot;,
    &quot;superagent&quot;: &quot;^3.5.1&quot;,
    &quot;tai-password-strength&quot;: &quot;^1.1.0&quot;,
    &quot;wreck&quot;: &quot;^12.2.0&quot;"><pre class="notranslate"><code class="notranslate">    "async": "^2.5.0",
    "boom": "^4.3.1",
    "chart.js": "^2.5.0",
    "cookie": "^0.3.1",
    "es6-promise": "^4.1.1",
    "form-data": "^2.1.4",
    "good": "^7.1.0",
    "h2o2": "^5.4.0",
    "hapi": "^16.1.1",
    "hapi-auth-basic": "^4.2.0",
    "immutability-helper": "^2.3.0",
    "joi-browser": "^10.0.6",
    "lodash": "^4.17.4",
    "log4js": "^1.1.1",
    "moment": "^2.18.1",
    "next": "2.4.6",
    "next-redux-saga": "^1.0.1",
    "next-redux-wrapper": "^1.2.0",
    "qs": "^6.5.0",
    "rc-pagination": "^1.9.8",
    "react": "^15.6.1",
    "react-async-script-loader": "^0.2.2",
    "react-chartjs2": "^1.1.1",
    "react-countup": "^2.0.3",
    "react-cropper": "^0.12.0",
    "react-cropperjs": "^1.2.5",
    "react-datepicker": "^0.46.0",
    "react-datetime": "^2.8.10",
    "react-dom": "^15.6.1",
    "react-dropzone": "^3.13.3",
    "react-image-crop": "^2.0.3",
    "react-no-ssr": "^1.1.0",
    "react-notification-system": "^0.2.13",
    "react-redux": "^5.0.5",
    "react-swal": "^2.0.0",
    "redux": "^3.7.2",
    "redux-actions": "^2.2.1",
    "redux-devtools-extension": "^2.13.2",
    "redux-saga": "0.15.4",
    "redux-thunk": "^2.2.0",
    "request": "^2.81.0",
    "request-promise": "^4.2.0",
    "semantic-ui-react": "^0.67.1",
    "socket.io": "^2.0.3",
    "socket.io-client": "^2.0.3",
    "superagent": "^3.5.1",
    "tai-password-strength": "^1.1.0",
    "wreck": "^12.2.0"
</code></pre></div>