You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like you're on a very old version of Next.js, 4.2.3, we're currently at Next.js 6. Let's start by upgrading. But I'm pretty sure that's not the issue.
What I suspect is that you have a .babelrc somewhere in the upwards directory tree. Like in your home directory for example. Next will show a message similar to "using custom .babelrc: <path>".
#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 |
Screenshots
System information
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"
}
}
The text was updated successfully, but these errors were encountered: