更新到 React Native 0.7.1 后执行离线包失败
Executing offline bundle fails after update to React Native 0.7.1
我最近使用 npm
将 React Native 更新到 v0.7.1,并使用自制软件更新到 iojs
。但是,在离线版本中执行应用程序时(使用 curl
下载捆绑包后)我收到以下错误:
2015-07-16 18:19:21.937 [error][tid:com.facebook.React.JavaScript] "Error: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')
stack:
_callFunction main.jsbundle:3
<unknown> main.jsbundle:3
<unknown> main.jsbundle:3
perform main.jsbundle:2
batchedUpdates main.jsbundle:5
u main.jsbundle:2
<unknown> main.jsbundle:3
T main.jsbundle:3
C main.jsbundle:3
processBatch main.jsbundle:3
URL: file:///private/var/mobile/Containers/Bundle/Application/BBE9CDDD-159D-4269-A649-B76CCD11737E/hafnertecBluetoothControlReactNative.app/main.jsbundle
line: 3
message: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')"
开发版工作正常。我用 React Native v0.4.0
开始了这个项目
问题是由模块 react-native-localization
引起的,该模块需要旧版本的 react-native
。 This issue has already been fixed.
我最近使用 npm
将 React Native 更新到 v0.7.1,并使用自制软件更新到 iojs
。但是,在离线版本中执行应用程序时(使用 curl
下载捆绑包后)我收到以下错误:
2015-07-16 18:19:21.937 [error][tid:com.facebook.React.JavaScript] "Error: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')
stack:
_callFunction main.jsbundle:3
<unknown> main.jsbundle:3
<unknown> main.jsbundle:3
perform main.jsbundle:2
batchedUpdates main.jsbundle:5
u main.jsbundle:2
<unknown> main.jsbundle:3
T main.jsbundle:3
C main.jsbundle:3
processBatch main.jsbundle:3
URL: file:///private/var/mobile/Containers/Bundle/Application/BBE9CDDD-159D-4269-A649-B76CCD11737E/hafnertecBluetoothControlReactNative.app/main.jsbundle
line: 3
message: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')"
开发版工作正常。我用 React Native v0.4.0
开始了这个项目问题是由模块 react-native-localization
引起的,该模块需要旧版本的 react-native
。 This issue has already been fixed.