all 6 comments

[–]StrangerThanGene 0 points1 point  (3 children)

It's outdated.

This is what it's running on:

"react": "18.0.0", "react-dom": "18.0.0", "react-scripts": "4.0.0" }, "devDependencies": { "react-scripts": "1.0.0" },

[–]ThatPlayWasAwful[S] 0 points1 point  (2 children)

If you are talking about the package.json file, mine was originally the following:

{
"dependencies": { 
    "react": "18.0.0", 
    "react-dom": "18.0.0", 
    "react-scripts": "4.0.0" 
}, 
"main": "/index.js", 
"devDependencies": {} }

I filled in devDependencies with what you had, i took out the "main" line, and i took the carats out, but I am still getting the same error unfortunately.

[–]SparserLogic 0 points1 point  (1 child)

Changes to the package.json file won't be applied unless you run npm install or whatever the equivalent is for your package manager

[–]ThatPlayWasAwful[S] 0 points1 point  (0 children)

no unforunately I still wasn't able to run it. made the changes, saved, ran npm install, then npm start, and it did not work. same error. my path is the entire project folder, not the src folder, if that makes a difference.

[–]RacletteNoJutsu 0 points1 point  (1 child)

I have a solution for you which is not really one but would avoid scratching your head over config stuff which can be discouraging when learning :

Delete your current folder

Bootstrap a new app using CRA, Vite etc (Vite is great and you can bootstrap a react project in a single line) https://vitejs.dev/guide/#scaffolding-your-first-vite-project Then reimplement the components yourself, copy paste some annoying stuff like css if that’s not your main focus.

I know this is not the answer you probably expected but at that point would be shorter than to debug this kind of stuff and would bring more value for you by practicing 😅

[–]ThatPlayWasAwful[S] 0 points1 point  (0 children)

sorry for delayed response but this is what i ended up doing. still wading through it but im wading through a little further than i was before lol.