Skip to content

I cannot setup next.js #4578

@hitt5

Description

@hitt5

#I did following tutorial. Then command 'npm run dev', error is occurred.
https://github.com/zeit/next.js

Describe the bug

ERROR Failed to compile with 1 errors

error in ./pages?entry

Syntax Error: Unexpected token (6:21)

4 | // };
5 |

6 | export default () =>

Welcome to next.js!

| ^
7 |
@ multi ./pages?entry

Screenshots

2018-06-11 2 02 46

2018-06-11 2 03 22

2018-06-11 2 03 41

System information

  • OS: macOS
  • Browser (if applies) chrome
  • Version of Next.js: 4.2.3

Additional context

------index.js-----------

export default () =>
Welcome to next.js!

------package.json------
{
"name": "kickstart",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "mocha",
"dev": "next",
"build": "next build",
"start": "next start"
},
"author": "",
"license": "ISC",
"dependencies": {
"fs-extra": "^6.0.1",
"ganache-cli": "^6.1.0",
"mocha": "^5.2.0",
"next": "^4.2.3",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"solc": "^0.4.24",
"truffle-hdwallet-provider": "0.0.3",
"web3": "^1.0.0-beta.26"
}
}

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