Seen here: https://trailsjs.io/doc/en/build/service.html
The example code under "Implement ReportController" references this.services.ReportService, which errors out with "Trying to call property of undefined". The only way I could get this to work is by replacing with this.app.services.ReportService (note the addition of app after this).
Issue Description
Seen here: https://trailsjs.io/doc/en/build/service.html The example code under "Implement ReportController" references
this.services.ReportService
, which errors out with "Trying to call property of undefined". The only way I could get this to work is by replacing withthis.app.services.ReportService
(note the addition ofapp
afterthis
).Environment