Next.js: with-firebase-authentication error on npm run dev

Created on 10 Apr 2019  路  5Comments  路  Source: vercel/next.js

Bug report

when running sample project I get the following 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.
| 
| 
> import('./noop'); // Support EventSource on Internet Explorer 11
| 
| if (!window.EventSource) {
> Ready on http://localhost:3000

Server obviously can't open anything. And subsequent log spits this out:

TypeError: Cannot read property 'issuer' of null
    at findEntryModule (/Users/max/Documents/Developer/React/nextExpressFirebase/with-firebase-authentication-app/node_modules/next/dist/server/hot-reloader.js:60:16)
    at erroredPages (/Users/max/Documents/Developer/React/nextExpressFirebase/with-firebase-authentication-app/node_modules/next/dist/server/hot-reloader.js:68:29)
    at HotReloader.getCompilationErrors (/Users/max/Documents/Developer/React/nextExpressFirebase/with-firebase-authentication-app/node_modules/next/dist/server/hot-reloader.js:310:33)
    at <anonymous>


All 5 comments

Me too, I have the same error when I am learning the Lazy loading modules . Now waiting for help !

Same here! For the time being, I fixed it by commenting out line 36 in ./node_modules/next/dist/client/next-dev.js

I have the same error, only I am not using firebase:

Failed to compile.
./node_modules/next/dist/client/next-dev.js 48:6

Module parse failed: Unexpected token (48:6)
You may need an appropriate loader to handle this file type.
// The runtimeChunk can't hot reload itself currently to correct it when adding pages using on-demand-entries

import("./noop"); // Support EventSource on Internet Explorer 11

if (!window.EventSource) {
Ready on http://localhost:3000

the real problem here is that when you open the noop.js file, there is nothing. Its content is "use strict"
and that's all, nothing more. Or it is already declared in the line 1 of this next-dev.js.

Duplicate of https://github.com/zeit/next.js/issues/6240

the real problem here is that when you open the noop.js file, there is nothing. Its content is "use strict"

Actually the issue is a bug in npm, it's described in #6240 馃檹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knipferrc picture knipferrc  路  3Comments

DvirSh picture DvirSh  路  3Comments

wagerfield picture wagerfield  路  3Comments

ghost picture ghost  路  3Comments

jesselee34 picture jesselee34  路  3Comments