nervosnetwork / ckb-explorer-frontend

Nervos CKB Explorer Frontend
https://explorer.nervos.org/
MIT License
110 stars 74 forks source link

SyntaxError occur when getting start #745

Closed lai0yu closed 4 years ago

lai0yu commented 4 years ago
./src/contexts/reducer/index.ts
SyntaxError: C:\Users\Administrator\Documents\OpensourceProject\ckb-explorer-frontend-develop\src\contexts\reducer\index.ts: Unexpected token (12:0)

  10 |   state: State.AppState,
  11 |   { type, payload }: { type: StateActions; payload: any },
> 12 | ): State.AppState => {
     | ^
  13 |   if (Object.values(AppActions).includes(type as AppActions)) {
  14 |     return appReducer(state, { type: type as AppActions, payload })
  15 |   } else if (Object.values(PageActions).includes(type as PageActions)) {
duanyytop commented 4 years ago

Could you give me your operations when you started the project? Thanks.

lai0yu commented 4 years ago

Could you give me your operations when you started the project? Thanks.

terminal.txt

Terminal operations has been uploaded,but I just use command of npm install, cnpm install(a mirror source of npm), yarn install, yarn start, npm start.

duanyytop commented 4 years ago

It looks like the compilation fails.

lai0yu commented 4 years ago

It looks like the compilation fails.

Due to the network of my computer, only use cnpm install can install all packages. I have tried yarn install and npm install, but neither was successful!

duanyytop commented 4 years ago

Please make sure you could install successfully, otherwise, I cannot tell what this error is. Thanks.