An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
October 30, 2021 04:59 pm GMT
5. Heroku
Original Link: https://dev.to/deek9399/fixing-my-everyday-errors-1bol
Fixing my everyday errors!!
1. How do I kill a process currently using a port on localhost?
npx kill-port 8001
Expected output: Process on port 8001 killed
2. Using import in server.js
Inside package.json add
"type": "module",
3. sh: react-scripts: command not found after running npm start
run npm install
or yarn add
stack-overflow
4. axios baseURL
// Set config defaults when creating the instanceconst instance = axios.create({ baseURL: 'https://api.example.com'});
5. Heroku error code = H10
Heroku dynamically sets the PORT, which can be accessed with process.env.PORT
const port = process.env.PORT || 8001;
Original Link: https://dev.to/deek9399/fixing-my-everyday-errors-1bol
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To