title: Realm Error: "JS value must be of type: number"
body: <p>I've had a prototype of an app running great with a simple, single-scheme realm. But now I want to add a couple of other schema and let one schema contain a list of the others. </p>
  
  <p>Ultimately, I get an error when executing the</p>
  
  <pre><code>let realm = new Realm({schema: MySchemas});
  </code></pre>
  
  <p>line. Error is: "JS value must be of type: number". Here's how I've got things setup.</p>
  
  <p><strong>Schema.js</strong></p>
  
  <pre><code>'use strict';
  
  let currentSchemaVersion = 0;
  
  const Schema1 = {
      name: 'Type1',
      primaryKey: 'id',
      properties: {
          id: {type: 'string', indexed:true},
          propOne: 'string',
          propTwo: 'string',
          propThree: 'int',
          propFour: {type: 'list', objectType: 'Type2'},
          propFive: {type: 'list', objectType: 'Type3'}
      }
  };
  
  const Schema2 = {
      name: 'Type2',
      primaryKey: 'id',
      properties:{
          id: 'string',
          prop1: 'string'
      }
  };
  
  const Schema3 = {
      name: 'Type3',
      primaryKey: 'id',
      properties:{
          id: {type:'string', indexed:true},
          propOne: {type:'string', indexed:true},
      }
  }
  
  export const MySchemas = [Schema1, Schema2, Schema3];
  </code></pre>
  
  <p>Then in the referencing file, call it <strong>MyComponent.js</strong></p>
  
  <pre><code>'use strict';
  
  import Realm from 'realm';
  import * as MySchemas from './Data/Schema.js';
  
  let realm = new Realm({schema: MySchemas}); //BARRRFFFF!
  </code></pre>
  
  <p>The only number in the whole lot is propThree from Type1, right? So I figure the problem is somehow related, but I've got no visibility into the internals so I don't know what the deal is. I've tried with and without a default on that property. Either way it's no go.</p>
  
  <p>Thanks a ton for any insight. And no, unfortunately, <a href="https://stackoverflow.com/questions/38214973/how-to-add-a-nested-list-of-objects-in-realm-error-js-value-must-be-of-type-o">How to add a nested List of objects in Realm &quot;Error: JS value must be of type: object&quot;</a> is not helpful.</p>
  
  <p>Edit: I just removed the nested lists AND the only property in the whole show that was a number (propThree) and I still get the same error.</p>