Error 404 when running npm start, but I am giving the command inside the project folder

Asked

Viewed 16 times

-2

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>React</title>
</head>
<body>
    <div id="root"></div>
    <script src="./main.js"></script>
</body>
</html>

PACKAGE.JSON
{
  "name": "WebpackBabel",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "webpack serve --mode development --open --hot",
    "build": "webpack --mode production"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "webpack": "^5.51.1",
    "webpack-cli": "^4.8.0",
    "webpack-dev-server": "^4.0.0"
  },
  "dependencies": {
    "react": "^17.0.2",
    "react-dom": "^17.0.2"
  }
}

insira o código aqui

ERRO 
Failed to load resource: the server responded with a status of 404 (Not Found)

  • That’s the whole error message or have more?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.