<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Next.js fails to compile</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>run <code class="notranslate">npm run dev</code> on <a href="https://github.com/voluntarily/vly2">http://github.com/voluntarily/vly2</a></li>
<li>watch the logs</li>
</ol>
<p dir="auto">Logs return</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ error ] ./node_modules/next/dist/client/next-dev.js 36:6
Module parse failed: Unexpected token (36:6)
You may need an appropriate loader to handle this file type.
| 
| 
&gt; import('./noop'); // Support EventSource on Internet Explorer 11
| 
| if (!window.EventSource) {
mongodb connected at: mongodb://localhost/vly2
Voluntari.ly running on http://localhost:3122/ Be Awesome
(node:81825) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'issuer' of null
    at findEntryModule (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:60:16)
    at erroredPages (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:68:29)
    at HotReloader.getCompilationErrors (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:308:33)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:81825) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:81825) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:81825) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'issuer' of null
    at findEntryModule (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:60:16)
    at erroredPages (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:68:29)
    at HotReloader.getCompilationErrors (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:308:33)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:81825) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
"><pre class="notranslate"><code class="notranslate">[ error ] ./node_modules/next/dist/client/next-dev.js 36:6
Module parse failed: Unexpected token (36:6)
You may need an appropriate loader to handle this file type.
| 
| 
&gt; import('./noop'); // Support EventSource on Internet Explorer 11
| 
| if (!window.EventSource) {
mongodb connected at: mongodb://localhost/vly2
Voluntari.ly running on http://localhost:3122/ Be Awesome
(node:81825) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'issuer' of null
    at findEntryModule (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:60:16)
    at erroredPages (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:68:29)
    at HotReloader.getCompilationErrors (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:308:33)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:81825) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:81825) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:81825) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'issuer' of null
    at findEntryModule (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:60:16)
    at erroredPages (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:68:29)
    at HotReloader.getCompilationErrors (/Users/walt/dev/vly2/node_modules/next/dist/server/hot-reloader.js:308:33)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:81825) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expect the site to render</p>
<h1 dir="auto">Bug report</h1>
<p dir="auto">Just upgraded to 8.0.0 and I'm really excited! I've run into an issue though that is preventing my project from compiling</p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">So when I run <code class="notranslate">dev</code> I am getting the following issue</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="You may need an appropriate loader to handle this file type.
| 
| 
&gt; import('./noop');
| var _window = window,
|     assetPrefix = _window.__NEXT_DATA__.assetPrefix;"><pre class="notranslate"><code class="notranslate">You may need an appropriate loader to handle this file type.
| 
| 
&gt; import('./noop');
| var _window = window,
|     assetPrefix = _window.__NEXT_DATA__.assetPrefix;
</code></pre></div>
<p dir="auto">It seems to be coming from <code class="notranslate">webpack  4.29.0</code> (<a href="https://github.com/webpack/webpack/issues/8656#issuecomment-456713191" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/8656/hovercard">see here</a>).</p>
<p dir="auto">It looks like the issue was fixed with <a href="https://github.com/zeit/next.js/pull/6137" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/6137/hovercard">this</a> which declared <code class="notranslate">acorn": "^6.0.5</code> as a dependency but the change doesn't seem to be present on <a href="https://github.com/zeit/next.js/blob/master/packages/next/package.json">master</a></p>
<p dir="auto">Maybe I upgraded too soon?</p>