для моего (первого) реактивного проекта я использую модуль Node react-native-refreshable-listview, требующий метода обещания 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
, мне очень нравится концепция обещаний, и я планирую использовать в своем приложении еще несколько.
Я использую реактивную версию 0.6.0 rc1, а также iOS 8.3.
Я ценю любую помощь. Заранее спасибо!
promise
, предложенную на этом веб-сайте (разделNodeJS
) - person Lukas   schedule 12.06.2015