Visual Studio AppCenter构建失败,Bash退出代码' 1'

时间:2018-06-10 10:07:15

标签: rxjs visual-studio-app-center

我有一个反应原生的应用程序,我试图使用VS AppCenter构建,我很难搞清楚构建错误是什么。查看日志,它似乎位于步骤6 Generate Source Map

错误是否为rxjs错误Property left of AssignmentExpression expected node to be of a type ["LVal"] but instead got "ConditionalExpression"并且导致构建失败的原因是什么?如果是这样,它如何运行并在本地构建就好了?

##[section]Starting: Generate source map
==============================================================================
Task         : Command Line
Description  : This is an early preview. Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
Version      : 2.127.0
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
Generating script.
[command]/bin/bash --noprofile --norc /Users/vsts/agent/2.134.2/work/_temp/foo.sh
Found index.js for ReactNative index.
Scanning folders for symlinks in /Users/vsts/agent/2.134.2/work/1/s/node_modules (33ms)
Scanning folders for symlinks in /Users/vsts/agent/2.134.2/work/1/s/node_modules (31ms)
Loading dependency graph, done.
warning: the transform cache was reset.
/Users/vsts/agent/2.134.2/work/1/s/node_modules/rxjs/symbol/iterator.js: /Users/vsts/agent/2.134.2/work/1/s/node_modules/rxjs/symbol/iterator.js: Property left of AssignmentExpression expected node to be of a type ["LVal"] but instead got "ConditionalExpression"
##[error]Bash exited with code '1'.
##[section]Finishing: Generate source map

谷歌搜索我发现这个潜在相关的错误https://github.com/facebook/react-native/issues/6063,但大多数解决方案似乎是更新为过时的巴贝尔预设。

以下是我的依赖

"react": "16.3.1",
"react-native": "^0.55.3",

  "devDependencies": {
    "babel-jest": "22.4.3",
    "babel-preset-react-native": "4.0.0",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "jest": "22.4.3",
    "react-test-renderer": "16.3.1"
  },

0 个答案:

没有答案