Closed jaumard closed 8 years ago
or change the core to copie this.app.config.main.packs on this.app.packs.
The core does copy everything over, and indexes by pack name: https://github.com/trailsjs/trails/blob/master/index.js#L77. Are you still seeing this issue?
As I see packs are not copy, you only doing a .map
on them (if I understand correctly).
To fix it I have to add this.packs = packs
at the end of the bindTrailpackMethodListeners
method.
I can PR if you think it's correct.
OK; either way, I don't think it's specific to the trailpack-hapi module, right? Let's discuss further in the main trails repo
Under https://github.com/trailsjs/trailpack-hapi/blob/master/index.js in validate method you test
this.app.packs
but is not define you should testthis.app.config.main.packs
or change the core to copiethis.app.config.main.packs
onthis.app.packs
.