Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error callback is not a function #63

Open
Mkpa opened this issue Mar 24, 2017 · 2 comments
Open

error callback is not a function #63

Mkpa opened this issue Mar 24, 2017 · 2 comments

Comments

@Mkpa
Copy link

Mkpa commented Mar 24, 2017

Pls I need help to go round this error. It's evident that some had already encountered it. I've tried editing the index.js file. Yet no positive response still. I always get
return callback (null, options); //happens on line 154

TypeError: callback is not a function

@frankcash
Copy link
Collaborator

hello, please include your code

@cpuzzuol
Copy link

cpuzzuol commented Jun 16, 2017

You need to add a callback to generateTempUserModel like so:

nev.generateTempUserModel(User, function(err, tempUserModel) {
    if (err) {
       console.log(err);
       return;
    }

    console.log('generated temp user model: ' + (typeof tempUserModel === 'function'));
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants