Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Charleschua opened this issue Mar 20, 2018 · 1 comment

Comments

@Charleschua
Copy link

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.

@akjob25
Copy link

akjob25 commented Dec 8, 2020

SAME HERE BRO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants