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

reload + waterline issue #8

Open
ydomenjoud opened this issue Oct 20, 2016 · 0 comments
Open

reload + waterline issue #8

ydomenjoud opened this issue Oct 20, 2016 · 0 comments

Comments

@ydomenjoud
Copy link

Enable autoreload in main.js packs with waterline-sqlite3 display error : " Cannot read property 'identity' of undefined"

TypeError: Cannot read property 'identity' of undefined
    at _.mapValues.store (/home/workplace/trails/node_modules/trailpack-waterline/lib/transformer.js:53:31)
    at /home/workplace/trails/node_modules/lodash/lodash.js:13303:38
    at /home/workplace/trails/node_modules/lodash/lodash.js:4917:15
    at baseForOwn (/home/workplace/trails/node_modules/lodash/lodash.js:2979:24)
    at Function.mapValues (/home/workplace/trails/node_modules/lodash/lodash.js:13302:7)
    at Object.transformConnections (/home/workplace/trails/node_modules/trailpack-waterline/lib/transformer.js:51:14)
    at WaterlineTrailpack.initialize (/home/workplace/trails/node_modules/trailpack-waterline/index.js:46:40)
    at app.after.then (/home/workplace/trails/node_modules/trails/lib/trailpack.js:58:26)

how to reproduce :

  • install trails yo trails
  • install waterline-sqlite3 npm install --save waterline-sqlite3
  • install autoreload npm install --save trailpack-autoreload
  • enable dev connexion in database.js
  • enable autoreload in main.js require('trailpack-autoreload')
  • run server npm start
  • edit file to trigger reload ( like config/routes.js by adding 'POST' to /api/v1/default/info )

Informations:

  • npm -v => 3.10.8
  • node -v => 6.7.0
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

1 participant