Meteor-autoform: Exception in defer callback: TypeError: "data is null"

Repo: https://github.com/janat08/meteorShoppingCart

Using meteor collections2, I can’t get autoform to show. I get error: Exception in template helper: lookup (very long stack trace), and then Exception in defer callback: TypeError: "data is null".

productForm.js

import './productForm.html';
import { Products, pSchema } from '/imports/api/products/products.js';

productForm.html

<template name="productForm">
  {{> quickForm collection="Products" id="insertProductsForm" type="insert"}}
</template>

products.js


import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
import { Tracker } from 'meteor/tracker';
SimpleSchema.extendOptions(['autoform']);

const Products = new Mongo.Collection('products');

const pSchema = new SimpleSchema({
    title: {
        type: String,
        label: "Title",
        max: 100
    },
    description: {
        type: String,
        label: "Description",
        max: 500,
    },
    price: {
        type: Number,
        label: "Price",
        min: 0
    },
    Images: {
        type: Date,
        label: "Last date this book was checked out",
        optional: true
    },
}, { tracker: Tracker })

Products.attachSchema(pSchema)

export {Products, pSchema}

Complete stack traces:

Exception in template helper: lookup@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/aldeed_autoform.js?hash=c81ac91e831a4e82295c0ea281959578135ed2a3:246:15
setDefaults@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/aldeed_autoform.js?hash=c81ac91e831a4e82295c0ea281959578135ed2a3:2924:41
autoform-api.js/AutoForm.parseData@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/aldeed_autoform.js?hash=c81ac91e831a4e82295c0ea281959578135ed2a3:2667:10
quickFormContext@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/aldeed_autoform.js?hash=c81ac91e831a4e82295c0ea281959578135ed2a3:6045:33
bindDataContext/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3051:16
Blaze._wrapCatchingExceptions/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1715:16
wrapHelper/</<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3103:66
Template._withTemplateInstanceFunc@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3769:14
wrapHelper/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3102:27
Spacebars.call@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:172:18
template.quickForm.js/Template.quickForm</<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/aldeed_autoform.js?hash=c81ac91e831a4e82295c0ea281959578135ed2a3:6019:23
wrappedArgFunc@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2960:14
Blaze.With/</<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2673:26
viewAutorun/</<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1934:20
Template._withTemplateInstanceFunc@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:3769:14
viewAutorun/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1932:29
Blaze._withCurrentView@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2271:12
viewAutorun@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1931:18
_compute@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/tracker.js?hash=a51bf8f2995265823e1384a05b2c1851bddee036:331:38
Computation@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/tracker.js?hash=a51bf8f2995265823e1384a05b2c1851bddee036:228:12
tracker.js/Tracker.autorun@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/tracker.js?hash=a51bf8f2995265823e1384a05b2c1851bddee036:601:11
Blaze.View.prototype.autorun@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1944:22
Blaze.With/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2672:12
fireCallbacks@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2014:26
tracker.js/Tracker.nonreactive@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/tracker.js?hash=a51bf8f2995265823e1384a05b2c1851bddee036:625:12
Blaze._fireCallbacks/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2011:13
Blaze._withCurrentView@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2271:12
Blaze._fireCallbacks@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2010:9
Blaze._createView@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2028:9
Blaze._materializeView@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2073:9
materializeDOMInner@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1532:15
Blaze._materializeDOM@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1474:22
Blaze._materializeDOM@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:1483:7
Blaze._materializeView/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2113:31
tracker.js/Tracker.nonreactive@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/tracker.js?hash=a51bf8f2995265823e1384a05b2c1851bddee036:625:12
Blaze._materializeView@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2079:11
Blaze.render@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/blaze.js?hash=51f4a3bdae106610ee48d8eff291f3628713d847:2370:9
_render@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/kadira_blaze-layout.js?hash=1d84a640da120863ac1377e68eef3553d189b864:204:11
render/</<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/kadira_blaze-layout.js?hash=1d84a640da120863ac1377e68eef3553d189b864:77:21
EVp.withValue@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:1207:15
withoutInvocation/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:588:25
Meteor.bindEnvironment/<@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:1234:22
onGlobalMessage@https://2837e08ce73d4a049684366fca45d198.vfs.cloud9.ap-southeast-1.amazonaws.com/packages/meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:515:23
Exception in defer callback: TypeError: "data is null"
    autoFormCreated autoForm.js:75
    viewAutorun blaze.js:1934
    _withTemplateInstanceFunc blaze.js:3769
    viewAutorun blaze.js:1932
    _withCurrentView blaze.js:2271
    viewAutorun blaze.js:1931
    _compute tracker.js:308
    Computation tracker.js:206
    autorun tracker.js:576
    autorun blaze.js:1944
    autorun blaze.js:3604
    autoFormCreated autoForm.js:73
    fireCallbacks blaze.js:3398
    _withTemplateInstanceFunc blaze.js:3769
    fireCallbacks blaze.js:3394
    constructView blaze.js:3474
    fireCallbacks blaze.js:2014
    nonreactive tracker.js:603
    _fireCallbacks blaze.js:2011
    _withCurrentView blaze.js:2271
    _fireCallbacks blaze.js:2010
    _createView blaze.js:2028
    _materializeView blaze.js:2073
    materializeDOMInner blaze.js:1532
    _materializeDOM blaze.js:1474
    _materializeDOM blaze.js:1483
    _materializeView blaze.js:2113
    nonreactive tracker.js:603
    _materializeView blaze.js:2079
    render blaze.js:2370
    _render kadira_blaze-layout.js:204
    render kadira_blaze-layout.js:77
    withValue meteor.js:1207
    withoutInvocation meteor.js:588
    bindEnvironment meteor.js:1234
    onGlobalMessage meteor.js:515
meteor.js:1061:23

I think the issue was with the bug https://github.com/meteor/meteor/issues/10805

It’s not that issue.