-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fresh Install does not work with footprints #5
Comments
Just run into the same issue. Looks like the npm package is outdated compared to the GitHub version, this file https://github.com/trailsjs/trailpack-mongoose/blob/master/api/services/FootprintService.js is completely empty in npm. Fixed temporarily the issue by updating my package.json with |
just redid a fresh trails install, updated the npm package as you suggested and now I get no footprint routes generated. |
also with the update I can not do console commands for the ORM as well. |
@Krisa @randallmeeker pushed new version with changes and fixes. |
This was installed using
yo trails
and specifying hapi & mongooseconfig/database.js
going to
/api/v1/user
results in a 500 error and the following outputted to the console.Output
debug: [FootprintController] (find) model = user , criteria = {} undefined options = Debug: internal, implementation, error TypeError: Uncaught error: FootprintService.find is not a function at FootprintController.find (/home/ubuntu/workspace/node_modules/trailpack-hapi/api/controllers/FootprintController.js:49:35) at Object.exports.execute.internals.prerequisites.internals.handler.callback [as handler] (/home/ubuntu/workspace/node_modules/hapi/lib/handler.js:96:36) at /home/ubuntu/workspace/node_modules/hapi/lib/handler.js:63:26 at done (/home/ubuntu/workspace/node_modules/hapi/node_modules/items/lib/index.js:31:25) at done (/home/ubuntu/workspace/node_modules/hapi/node_modules/items/lib/index.js:63:25) at /home/ubuntu/workspace/node_modules/hapi/lib/handler.js:49:28 at finalize (/home/ubuntu/workspace/node_modules/hapi/lib/handler.js:281:20) at wrapped (/home/ubuntu/workspace/node_modules/hapi/node_modules/hoek/lib/index.js:867:20) at internals.Response._prepare.internals.Response._processPrepare.next [as _processPrepare] (/home/ubuntu/workspace/node_modules/hapi/lib/response.js:457:16) at internals.Response._prepare.next [as _prepare] (/home/ubuntu/workspace/node_modules/hapi/lib/response.js:396:21) at /home/ubuntu/workspace/node_modules/hapi/lib/reply.js:151:22 at nextTickCallbackWith0Args (node.js:420:9) at process._tickDomainCallback (node.js:390:13)
it is known that this error is when an model can not be found, however the model is visible from the console via
app.orm.User
app info
The text was updated successfully, but these errors were encountered: