“Super expression must either be null or a function, not object” error
问题 I use example code from https://github.com/realm/realm-js/blob/master/examples/ReactExample/components/realm.js. 'use strict'; import Realm from 'realm'; class Todo extends Realm.Object {} Todo.schema = { name: 'Todo', properties: { done: {type: 'bool', default: false}, text: 'string', }, }; class TodoList extends Realm.Object {} TodoList.schema = { name: 'TodoList', properties: { name: 'string', items: {type: 'list', objectType: 'Todo'}, }, }; export default new Realm({schema: [Todo,