trailsjs / trails

:evergreen_tree: Modern Web Application Framework for Node.js.
http://trailsjs.io
Other
1.66k stars 70 forks source link

this.app.packs is not defined #32

Closed jaumard closed 8 years ago

jaumard commented 8 years ago

this.app.packs is not copy correctly from this.app.config.main.packs cause it's undefined. One fix can be to modify https://github.com/trailsjs/trails/blob/master/index.js#L77 and add this.packs = packs

First issue report for the record : https://github.com/trailsjs/trailpack-hapi/issues/5

konstantinzolotarev commented 8 years ago

I think this issue is related.

After generating new app using yo and npm start getting this error:

****/OpenSource/trails/test/node_modules/trails/index.js:89
    const instantiatedPacks = this.config.main.packs.map(Pack => new Pack(this))