Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dora upgrade issue #84

Open
iboying opened this issue Oct 18, 2016 · 2 comments
Open

dora upgrade issue #84

iboying opened this issue Oct 18, 2016 · 2 comments

Comments

@iboying
Copy link

iboying commented Oct 18, 2016

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"
  }
}
@sorrycc
Copy link
Member

sorrycc commented Oct 18, 2016

ECONNREFUSED 表示端口被占用。

@sorrycc sorrycc closed this as completed Oct 18, 2016
@iboying
Copy link
Author

iboying commented Oct 18, 2016

停止其他的服务后,依然同样的错,我改了package.json的start 端口,提示如下:

> @ start /Users/kang/develop/react/cloud_closet_work
> dora -p 8989 --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: socket hang up  /
err with request :Error: connect ENFILE 127.0.0.1:8989 - Local (undefined:undefined)  /favicon.ico

补充:退回dora: 0.3.x,即可正常使用,无端口占用错误,所有我感觉应该不是端口占用的问题吧。谢谢

@sorrycc sorrycc reopened this Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants