I am pretty new to javascript and react, I want to use this github https://github.com/bennychen27/LoL-Stats-Tracker.
I use Visual Studio Code.
How I tried it?
- Downloaded the App as zip
- Unpacked it
- I have seen that this project includes a proxyserver and a client
- Then I have seen, that there are in my opinion files missing within the client folder, because how I have learned, the proxyserver and the App have to get started in two separat Terminals.
- So I have opened the unpacked folder in my visual Studio
- I used
npm installin the main directory - I deleted the client folder
- I created a new client folder by using:
npx create-react-app clientin the main directorty 9.Then I replaced the files in this client folder with the before deleted files of the before deleted client folder - I restartet my Visual Studio
- I used
npm installin the new client folder - Then I added the line
"proxy": "http://localhost:4000",in the package.json file of the client, because the server runs on port 4000 - Then I used
npm startin the main diectory and the client folder - Then the proxyserver started without problems
- And the client showed this error
The react-scripts command is either misspelled or could not be found. - So I used
npm installagain to fix that. - Then I used
npm startin the client folder - Then the error
'React' must be in scope when using JSXshowed up - I added
import React, { Component } from 'react';in my app.js file - A new Error showed up
Module not found: Can't resolve 'moment' in .... Failed to compile. - I used
npm install --save momentnpm install --save react-momentnpm install --save moment-timezoneafter that in my client folder - After a new try to start this error showed up
Module not found: Can't resolve 'react-select' in ... - I used
npm i react-selectto fix that
Now I am gettig errors over and over again, so I want to ask you if anyone could tell me, how I can set this up correctly, because how I already said, I am new to react.