Skip to content

dora upgrade issue #84

Description

@iboying

1、升级说明:"dora": "0.3.x" => "dora": "0.4.x"
2、问题: 升级后,npm start 不会跑build modules,服务器启动,但是访问不了。
退回0.3.x 可正常使用。
3、控制台提示信息:

> @ start /Users/kang/develop/react/cloud_closet_work
> dora -p 8001 --plugins "webpack,hmr,proxy,livereload?enableJs=false&injectHost=127.0.0.1,browser-history?index=/src/entries/index.html"

          proxy: load rule from proxy.config.js
          proxy: listened on 8989
     livereload: listening on 35729

webpack: bundle build is now finished.
err with request :Error: connect ECONNREFUSED 127.0.0.1:8001  /

4、package.json:

{
  "private": true,
  "entry": {},
  "dependencies": {
    "antd": "^2.0.1",
    "react": "^15.1.0",
    "react-dom": "^15.1.0",
    "classnames": "^2.2.3",
    "es3ify-loader": "^0.2.0",
    "express": "^4.14.0",
    "history": "^2.0.1",
    "isomorphic-fetch": "^2.2.1",
    "js-cookie": "^2.1.1",
    "normalize.css": "^4.2.0",
    "rc-form": "^1.0.0",
    "rc-queue-anim": "^0.12.4",
    "rc-tween-one": "^0.8.5",
    "react-router": "^2.0.1",
    "src": "^1.1.2",
    "superagent": "^2.2.0",
    "wechat-auth": "^1.1.2",
    "wechat-oauth": "^1.1.1"
  },
  "devDependencies": {
    "atool-build": "^0.8.0",
    "babel-plugin-import": "^1.0.1",
    "babel-plugin-transform-runtime": "^6.8.0",
    "babel-runtime": "^6.9.2",
    "atool-test-mocha": "^0.1.4",
    "babel-eslint": "^6.0.2",
    "dora": "0.4.x",
    "dora-plugin-browser-history": "^0.1.1",
    "dora-plugin-hmr": "0.7.x",
    "dora-plugin-livereload": "0.4.0",
    "dora-plugin-proxy": "0.8.x",
    "dora-plugin-webpack": "0.8.1",
    "expect": "^1.20.1",
    "eslint": "^2.12.0",
    "eslint-config-airbnb": "^9.0.1",
    "eslint-plugin-import": "^1.8.1",
    "eslint-plugin-jsx-a11y": "^1.4.2",
    "eslint-plugin-react": "^5.1.1",
    "glob": "^7.0.3",
    "pre-commit": "1.x"
  },
  "pre-commit": [
    "lint"
  ],
  "scripts": {
    "build": "atool-build",
    "lint": "eslint --ext .js,.jsx src",
    "start": "dora -p 8001 --plugins \"webpack,hmr,proxy,livereload?enableJs=false&injectHost=127.0.0.1,browser-history?index=/src/entries/index.html\"",
    "test": "atool-test-mocha ./src/**/__tests__/*-test.js"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions