Open jarvisRam opened 3 years ago
Failed to compile.
./src/components/EditBudget.js Syntax error: C:/temp/budget-app/src/components/EditBudget.js: Unexpected token (6:3)
4 | const [value, setValue] = useState(props.budget); 5 | return (
6 | <> | ^ 7 | <input 8 | required='required' 9 | type='number'
Faced this error while running on windows.
In Windows you can set scripts in package.json:
Delete set PORT=portnumber &&
and keep it like this :
"start": "react-scripts start"
Now do npm start and it will work in windows.
Windows users can't run the app after 'npm install' due to the npm start port configuration command. Below is the error seen,
Editing package.json as below would resolve the issue, "scripts": { "start": "(set PORT=3006 || export PORT=3006) && react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },