我之前使用了realm(0.13.2),没有任何错误。但是当我将插件更新到realm(1.2.0)时,它发生了:
undefined is not an object (evaluating '_realm.Realm.schemaVersion')
configureRealm
configure.js:14:19和configure.js,第14行:
var next = Realm.schemaVersion(Realm.defaultPath);怎么了?
发布于 2017-04-22 20:22:06
我发现realm有默认导出。所以,我只需要修改我的导入代码
从import {Realm} from 'realm';到import Realm from 'realm';
https://stackoverflow.com/questions/43559047
复制相似问题