对于我的(第一个)react本机项目,我使用Node模块react-本机-可刷新-列表视图,需要一个CommonJS/A+允诺方法来显示指示符。但是,每次使用者(例如,then )调用诺言的this.doSomething().then(function() { ... })方法时,我都会得到以下错误:
Error: Can't find variable: process
stack:
requestFlush index.ios.bundle:43767
rawAsap index.ios.bundle:43709
handle index.ios.bundle:43602
finale index.ios.bundle:43661
resolve index.ios.bundle:43651
<unknown> index.ios.bundle:43683
<unknown> index.ios.bundle:42446
notifyAll index.ios.bundle:4880
close index.ios.bundle:4597
closeAll index.ios.bundle:6174
perform index.ios.bundle:6115
perform index.ios.bundle:4629
flushBatchedUpdates index.ios.bundle:4709
ReactUpdates_flushBatchedUpdates index.ios.bundle:4978
closeAll index.ios.bundle:6174
perform index.ios.bundle:6115
batchedUpdates index.ios.bundle:13822
batchedUpdates index.ios.bundle:4644
<unknown> index.ios.bundle:7567
applyWithErrorReporter index.ios.bundle:7314
guardReturn index.ios.bundle:7336
processBatch index.ios.bundle:7566
URL: http://192.168.16.250:8081/index.ios.bundle
line: 43767
message: Can't find variable: process我已经读过这个问题了,但我无法解决这个问题。虽然组件ControlledListView可以用来避免这个错误,但我非常喜欢这个承诺概念,我计划在我的应用程序中使用更多。
我使用的是react原生版本0.6.0 rc1以及iOS 8.3。
我很感谢你的帮助。提前感谢!
https://stackoverflow.com/questions/30755618
复制相似问题