Autoform is undefined -


#1

Hi.

I’m using Autoform-ionic for my app and i need to be able to use hooks however, each time i try to declare Autoform.addHooks it turns out to be undefined.
I’ve tried to remove and reinstall the package but it still doesn’t work.


#2

You probably need to use

Meteor.startup(function(){
    if (Meteor.isClient) {
        // code here
    }
})

#3

The namespace is AutoForm