Skip to content

Error running bookshelf - Not a aclass #10

Description

@artmunro

Trying to get baseline working with Bookshelf after install got error...

trail pack Bookshelf validationError: migrate is not allowed. defaultStore is not allowed

Then added the user, and profile from example .. After npm start get ...

throw new Error(${resourceName} should be a class. It is a regular object)
^

Error: User should be a class. It is a regular object
at _.mapValues (...S\trails_ems2\node_modules\trails\lib\core.js:60:15)

Package versions ..
"dependencies": {
"express": "^5.0.0-alpha.2",
"trailpack-bookshelf": "^1.0.0-alpha-1",
"trailpack-express": "^2.0.0-rc3",
"trailpack-repl": "v2-latest",
"trailpack-router": "v2-latest",
"trails": "v2-latest",
"winston": "^2.3"
},

XXXXXX node version ...

{
"app": "0.0.0",
"node": "v6.2.1",
"libs": {
"http_parser": "2.7.0",
"node": "6.2.1",
"v8": "5.0.71.52",
"uv": "1.9.1",
"zlib": "1.2.8",
"ares": "1.10.1-DEV",
"icu": "57.1",
"modules": "48",
"openssl": "1.0.2h"
},
"trailpacks": [
{
"name": "repl",
"version": "2.1.0"
},
{
"name": "router",
"version": "2.1.0"
},
{
"name": "express",
"version": "2.0.0-rc3"
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions