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

微信小程序转react两处错误 #1329

Closed
mienv567 opened this issue Dec 2, 2018 · 2 comments
Closed

微信小程序转react两处错误 #1329

mienv567 opened this issue Dec 2, 2018 · 2 comments
Assignees

Comments

@mienv567
Copy link

mienv567 commented Dec 2, 2018

开始编译项目 taroConvert
创建 发现文件 src/app.css
创建 发现文件 src/app.js
TypeError: Cannot read property '0' of undefined
at new Parser (/usr/lib/node_modules/@tarojs/cli/node_modules/babylon/lib/index.js:1577:45)
at Object.parse (/usr/lib/node_modules/@tarojs/cli/node_modules/babylon/lib/index.js:7305:10)
at getAst (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-template/lib/index.js:29:21)
at /usr/lib/node_modules/@tarojs/cli/node_modules/babel-template/lib/index.js:53:24
at convertSourceStringToAstExpression (/usr/lib/node_modules/@tarojs/cli/src/util/ast_convert.js:54:38)
at exit (/usr/lib/node_modules/@tarojs/cli/src/h5.js:452:32)
at NodePath._call (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:117:8)
at TraversalContext.visitQueue (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/context.js:150:16)from
at exports.default (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-template/lib/index.js:12:11)
at convertSourceStringToAstExpression (/usr/lib/node_modules/@tarojs/cli/src/util/ast_convert.js:54:10)
at exit (/usr/lib/node_modules/@tarojs/cli/src/h5.js:452:32)
at NodePath._call (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:117:8)
at TraversalContext.visitQueue (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitSingle (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/context.js:108:19)
at TraversalContext.visit (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/context.js:192:19)
at Function.traverse.node (/usr/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/index.js:114:17)
创建 发现文件 src/config.js
创建 发现文件 src/index.html
创建 发现文件 src/utils/api.js
创建 发现文件 src/pages/authorization/authorization.css
创建 发现文件 src/pages/authorization/authorization.js
创建 发现文件 src/pages/detail/index.css
创建 发现文件 src/pages/detail/index.js
创建 发现文件 src/pages/diceGame/index.css
创建 发现文件 src/pages/diceGame/index.js
创建 发现文件 src/pages/diceInstructions/index.css
创建 发现文件 src/pages/diceInstructions/index.js
创建 发现文件 src/pages/evaluate/index.css
创建 发现文件 src/pages/evaluate/index.js
创建 发现文件 src/pages/index/index.css
创建 发现文件 src/pages/index/index.js
创建 发现文件 src/pages/login/login.css
创建 发现文件 src/pages/login/login.js
创建 发现文件 src/pages/myQuestion/index.css
创建 发现文件 src/pages/myQuestion/index.js
创建 发现文件 src/pages/tarotGame/index.css
创建 发现文件 src/pages/tarotGame/index.js
创建 发现文件 src/pages/tarotGamePay/index.css
创建 发现文件 src/pages/tarotGamePay/index.js
缺少npm包@tarojs/webpack-runner,开始安装...
warning " > @tarojs/components@1.2.0-beta.6" has unmet peer dependency "classnames@^2.2.5".
warning " > @tarojs/components@1.2.0-beta.6" has unmet peer dependency "omit.js@^1.0.0".
warning " > @tarojs/components@1.2.0-beta.6" has unmet peer dependency "weui@^1.1.2".
warning " > @tarojs/router@1.2.0-beta.6" has incorrect peer dependency "@tarojs/taro-h5@1.1.0-beta.3".
warning "@tarojs/webpack-runner" is already in "devDependencies". Please remove existing entry first before adding it to "dependencies".

⠙ Compiling...(node:30570) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess.cp.once.code (/home/xcx/taro/astro/taroConvert/node_modules/opn/index.js:84:13)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
(node:30570) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30570) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
🙅 Failed to compile.
都是最新版的 taro-cli和Taro v1.2.0-beta.6

@taro-bot
Copy link

taro-bot bot commented Dec 2, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Dec 2, 2018

CC @luckyadam

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