小编tbk*_*ing的帖子

获取http://localhost:3000/bundle.js net::ERR_ABORTED 404(未找到)

已经有其他类似的问题,但尽管有这些答案,这个问题仍然困扰着我 - 我在一个项目中使用 webpack 和 babel,但在尝试查找 bundle.js 时浏​​览器的控制台总是显示错误 404。

这是我的package.json

{
  "name": "node-str",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node ./bin/server.js"    
  },
  "keywords": [],
  "author": "Pedro_Coelho",
  "license": "ISC",
  "dependencies": {
    "babel-register": "^6.26.0",
    "body-parser": "^1.18.3",
    "create-react-class": "^15.6.3",
    "debug": "^3.1.0",
    "ejs": "^2.6.1",
    "express": "^4.16.3",
    "guid": "0.0.12",
    "http": "0.0.0",
    "md5": "^2.2.1",
    "mongoose": "^5.2.4",
    "react": "^16.6.1",
    "react-dom": "^16.6.1"
  },
  "devDependencies": {
    "babel-core": "^6.26.3",
    "babel-loader": "^8.0.4",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "nodemon": …
Run Code Online (Sandbox Code Playgroud)

javascript node.js reactjs webpack babeljs

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

babeljs ×1

javascript ×1

node.js ×1

reactjs ×1

webpack ×1