Skip to content

npm error in the learnnextjs tutorial #3135

@supersabillon

Description

@supersabillon
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Should serve the pages and watch for changes

Current Behavior

Going through the tutorial and setup its fine, I'm able to run npm run dev and it compiles successfully, I'm able to see "Hello Next.js" page loading, but after a few seconds the app fails.

error message:

`/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:323
(0, _keys2.default)(entries).forEach(function (page) {
^
TypeError: lastAccessPages.includes is not a function
at /Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:336:25
at Array.forEach (native)
at disposeInactiveEntries (/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:323:32)
at null._repeat (/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:171:5)
at null.wrapper [as _onTimeout] (timers.js:275:11)
at Timer.listOnTimeout (timers.js:92:15)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hello-next@1.0.0 dev: next
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hello-next@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/myname/.npm/_logs/2017-10-19T23_08_17_041Z-debug.log`

Steps to Reproduce (for bugs)

  1. Finish setup in Learnnextjs
  2. run npm run dev

Your Environment

Tech Version
next 4.1.1
node 6.9.2
OS macOs 10
browser chrome
etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions