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

build 后报错 [email protected] #673

Closed
SynChron1zed opened this issue Apr 13, 2018 · 11 comments
Closed

build 后报错 [email protected] #673

SynChron1zed opened this issue Apr 13, 2018 · 11 comments
Labels

Comments

@SynChron1zed
Copy link

Environment(required) | 环境(必填)

  • roadhog version(roadhog版本)1.2.2
  • Nodejs and Npm version(Nodejs 和 Npm 版本)
  • Operating environment (e.g. OS name) and its version(操作系统版本): mac

What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)

What do you expected?(预期的正常效果)

What happen?(发生了何种非正常现象)

Re-producible online demo (可复现的在线demo)

@SynChron1zed
Copy link
Author

image

@SynChron1zed
Copy link
Author

roadgorc build --debug 后 找到这块代码
image

@SynChron1zed
Copy link
Author

但是这里有啥问题呀 之前看到有回答是es5 转换的问题 但是这块代码应该不是呀

@sorrycc
Copy link
Owner

sorrycc commented Apr 13, 2018

用了 =>,一样是 ES5 转换的问题。

@sorrycc
Copy link
Owner

sorrycc commented Apr 13, 2018

package.json 贴上来看下。

@SynChron1zed
Copy link
Author

{
"private": true,
"scripts": {
"start": "roadhog server",
"build": "roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint"
},
"engines": {
"install-node": "6.9.2"
},
"dependencies": {
"antd": "^3.3.0",
"babel-plugin-import": "^1.6.6",
"babel-runtime": "^6.9.2",
"create-react-class": "^15.6.3",
"dva": "^2.0.0",
"dva-react-router-3": "^0.3.0",
"echarts": "^4.0.4",
"prop-types": "^15.6.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"roadhog": "^1.2.2"
},
"devDependencies": {
"babel-eslint": "^7.1.1",
"babel-plugin-dva-hmr": "^0.3.2",
"babel-plugin-transform-runtime": "^6.9.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.8.0",
"expect": "^1.20.2",
"husky": "^0.12.0",
"redbox-react": "^1.3.2",
"roadhog": "^0.5.2"
}
}

@sorrycc
Copy link
Owner

sorrycc commented Apr 13, 2018

报错代码是 query-string@6 的,但没在你的依赖里看到他,https://github.com/sindresorhus/query-string/blob/597f14a/index.js#L8

@SynChron1zed
Copy link
Author

好 我自己找下

@iosh
Copy link

iosh commented Apr 20, 2018

@SynChron1zed 最简单办法 yarn add [email protected] 不要使用6版本即可

@sorrycc
Copy link
Owner

sorrycc commented Apr 20, 2018

sorrycc/blog#68

@sorrycc sorrycc closed this as completed Apr 20, 2018
@SynChron1zed
Copy link
Author

@HiMrHu 问题早解决了 我给他删了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants