Woooo! It's June 08, 2021 and this article keeps on giving. It worked for me! Thank so much.
Followed this exactly,
"scripts": { "dev": "react-scripts start", "start": "serve -s build", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "heroku-postbuild": "npm run build" }
(start with npm run dev to run it locally )
2.) copied the above code("scripts") in place of my previous code "scripts" in my package.json file 3.) git commit -am "new update" 4.) git push heroku master
Thanks Kaitlyn Rodriguez.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Woooo! It's June 08, 2021 and this article keeps on giving. It worked for me! Thank so much.
Followed this exactly,
"scripts": {
"dev": "react-scripts start",
"start": "serve -s build",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"heroku-postbuild": "npm run build"
}
(start with npm run dev to run it locally )
2.) copied the above code("scripts") in place of my previous code "scripts" in my package.json file
3.) git commit -am "new update"
4.) git push heroku master
Thanks Kaitlyn Rodriguez.