Im using the example flask/react app from this github https://github.com/Faruqt/React-Flask
Problem is I have the flask.exe
in Project/venv/scripts
folder
and the repository is in Project/React-Flask-master
fodler
I edited the Prackges.json to
"scripts": {
"start": "react-scripts start",
"temp": "cd ../",
"start-backend": "cd backend && /../../venv/Scripts/flask run --no-debugger",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
But no matter what I try, I cannot use the relative folder structure.
I added a “temp” lien that is supposed to go one folder up, and even that doesnt work
(venv) C:CodeProjectReact-Flask-master>npm run temp
> [email protected] temp
> cd ../
(venv) C:CodeProjectReact-Flask-master>
And
(venv) C:CodeaicodeAIbotscatgptReact-Flask-master>npm run start-backend
> [email protected] start-backend
> cd backend && /../../venv/Scripts/flask run --no-debugger
The system cannot find the path specified.
(venv) C:CodeaicodeAIbotscatgptReact-Flask-master>
I tried using “../../” and “/../../”