通过运行命令进行新安装后
react-native init AwesomeProject
命令“ react-native run-android”显示很多“ babel:config:config-chain”消息,并且应用程序未运行...
babel:config:config-chain Ignored '/home/argaz/AwesomeProject/node_modules/metro/src/JSTransformer/worker.js' because it failed to match one of [ /^\/home\/argaz\/AwesomeProject\/node_modules\/react-native\/local-cli/,
babel:config:config-chain /^\/home\/argaz\/AwesomeProject\/node_modules\/react-native\/local-cli/ ] from '/home/argaz/AwesomeProject' +125ms
babel:config:config-chain Ignored '/home/argaz/AwesomeProject/node_modules/metro/src/ModuleGraph/worker/JsFileWrapping.js' because it failed to match one of [ /^\/home\/argaz\/AwesomeProject\/node_modules\/react-native\/local-cli/,
更多信息:
有人遇到这个问题吗? 谢谢
答案 0 :(得分:0)
将DEBUG
环境变量设置为*
或更具体的东西babel:*
,babel:config:*
或babel:config:config-chain
时输出的Babel日志。您的构建系统中必须设置了该变量。