Meteor-Community-Packages / meteor-autoform

AutoForm is a Meteor package that adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.
MIT License
1.44k stars 328 forks source link

Meteor Exception in template helper: TypeError: ss.getAllowedValuesForKey is not a function #1643

Closed AtouiIlyes closed 3 years ago

AtouiIlyes commented 6 years ago

Help please I am trying to add a step by step form with the package forwarder:autoform-wizard

i got this problem

> Exception in template helper: TypeError: ss.getAllowedValuesForKey is not a function
>     at Object.autoFormGetOptionsForField [as _getOptionsForField] (http://localhost:3000/packages/aldeed_autoform.js?hash=7fd654bd2426db80d2a64d62e2e16dcb2e32654e:2923:24)
>     at Object.afOptionsFromSchema (http://localhost:3000/packages/aldeed_autoform.js?hash=7fd654bd2426db80d2a64d62e2e16dcb2e32654e:1630:21)
>     at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3051:16
>     at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:1715:16
>     at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3103:66
>     at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3744:12)
>     at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3102:27
>     at Object.Spacebars.call (http://localhost:3000/packages/spacebars.js?hash=547cf8e466d1d52603d19bd5f48fb5df184fd237:172:18)
>     at http://localhost:3000/packages/forwarder_autoform-wizard.js?hash=597e88c1e956d19dd7d1b067711b25c0cf25adf8:123:32
>     at wrappedArgFunc (http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:2960:14)

and this one


Exception in template helper: TypeError: ss.getQuickTypeForKey is not a function
    at Object.getInputType (http://localhost:3000/packages/aldeed_autoform.js?hash=7fd654bd2426db80d2a64d62e2e16dcb2e32654e:2825:31)
    at Object.bsFormGroupSkipLabel (http://localhost:3000/packages/aldeed_autoform.js?hash=7fd654bd2426db80d2a64d62e2e16dcb2e32654e:8274:27)
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3051:16
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:1715:16
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3103:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3744:12)
    at http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:3102:27
    at Object.Spacebars.call (http://localhost:3000/packages/spacebars.js?hash=547cf8e466d1d52603d19bd5f48fb5df184fd237:172:18)
    at Template.afFormGroup_bootstrap3.HTML.DIV.HTML.SPAN.class (http://localhost:3000/packages/aldeed_autoform.js?hash=7fd654bd2426db80d2a64d62e2e16dcb2e32654e:8230:22)
    at Blaze.View.<anonymous> (http://localhost:3000/packages/blaze.js?hash=a1ff2d6d5ecd59ee11e2ba260b8650a9d1140f59:2734:44)
I have Meteor 1.6.1 and all the packages versions are updated

aldeed:autoform@6.3.0 aldeed:collection2@3.0.0 aldeed:simple-schema@1.5.4 what should i do, i am sure that my code is correct @aldeed