StephenGrider/EthereumCasts

Ethereum and Solidity: The Completer Developer's Guide chapter 145 Basic of Next Routing

Charleschua opened this issue · 1 comments

Dear Stephen,

I've got a compiling error, after opening up my browser localhost:3000, in chapter 145 of your course, Ethererum and Solidity: The Compete Developer's Guide, Basic of Next Routing;

This is the setting in the package.json file:

{
"name": "kickstart",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "mocha",
"dev": "next dev"
},
"author": "",
"license": "ISC",
"dependencies": {
"fs-extra": "^5.0.0",
"ganache-cli": "^6.1.0",
"mocha": "^5.0.4",
"next": "^4.1.4",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"solc": "^0.4.21",
"truffle-hdwallet-provider": "0.0.3",
"web3": "^1.0.0-beta.26"
},
"directories": {
"test": "test"
},
"devDependencies": {},
"description": ""
}

This is the code in my show page:

import React from 'react';

export default () => {
return

This is the show page

;

};

The following is the error message:

ERROR Failed to compile with 1 errors 07:10:34

error in ./pages?entry

Syntax Error: Unexpected token (4:11)

2 |
3 | export default () => {

4 | return

This is the campaign list page

;
| ^
5 |
6 | };

@ multi ./pages?entry

That's all. Appreciated.

SAME HERE BRO