在weex中使用firebase

請問有人在weex中使用過firebase嗎?目前web環境測試都沒問題,但只要到native端就是一片空白。
用了playground掃完之後出現這樣的js error:

WeexDemo <Weex>[exception]bundleJSType:Vue
instanceId: bundleUrl:WX_KEY_EXCEPTION_WXBRIDGE errorCode:-9400 functionName: exception:[WX_KEY_EXCEPTION_WXBRIDGE] [undefined:undefined:undefined] TypeError: undefined is not an object
(null) userInfo:{
   jsMainBundleStringContentLength = "";
   jsMainBundleStringContentMd5 = "";
} jsfmVersion:0.24.4 sdkVersion:0.18.0 appVersion:2.2 osVersion:12.0.1 platform:iOS deviceModel:iPhone11,2

If you want to know more, please open weex MNT

再用了weex debug開了js error後看到了這個:

index.js:32179 Uncaught TypeError: Cannot delete property 'startsWith' of [object String]
    at module.exports (index.js:32179)
    at $export (index.js:32239)
    at Object.<anonymous> (index.js:32589)
    at __webpack_require__ (index.js:23)
    at Object.<anonymous> (index.js:31657)
    at __webpack_require__ (index.js:23)
    at Object.<anonymous> (index.js:31583)
    at __webpack_require__ (index.js:23)
    at index.js:66
    at __weex_bundle_entry__ (index.js:69)

在entry.js裡只是單純有這一行就會有error,造成playground跟native(ios)端都出不來:
import firebase from 'firebase'

目前發現就是只要import firebase就會出現這樣的error...
找了很多地方都無解,不知道有沒有人碰過這樣的問題呢?
謝謝。

阅读 1.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进