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 occurs when run "api-example" #33

Open
EduardShaid opened this issue May 28, 2016 · 1 comment
Open

error occurs when run "api-example" #33

EduardShaid opened this issue May 28, 2016 · 1 comment

Comments

@EduardShaid
Copy link

Message: seneca: Ready function failed: this.make$ is not a function

@giannifiore
Copy link

giannifiore commented Jun 1, 2016

Solved with: npm-install seneca-entity and adding an use instruction:

var seneca = require('seneca')()
    .use('entity')
    .use('./product_catalog')
    .use('./api')
    .ready(function (){
        this.make$('product')
        .make$({ id$: 0, name: 'Apple', price: 99, star: 0 }).save$()
        .make$({ id$: 1, name: 'Orange', price: 199, star: 0 }).save$()
})

But then you fall into this other issue, like it happened to me: #37
This other seems related to seneca version

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

2 participants