-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Description
#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
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
Labels
No labels


