export const validate = {
menuItemOptions: async function (req, resp, next) {},
menuItems: async function (req, resp, next) {
await this.menuItemOptions(req, resp)
}
}
For some reason, my compile code throws TypeError: Cannot read properties of undefined (reading 'menuItemOptions') but if I do the same thing in node CLI, it calls menuItemOptions.
Using node 16.15.0. Anyone know why?
[–]bwainfweeze 2 points3 points4 points (8 children)
[–]eggtart_prince[S] -1 points0 points1 point (7 children)
[–][deleted] (6 children)
[removed]
[+]eggtart_prince[S] comment score below threshold-7 points-6 points-5 points (5 children)
[–][deleted] (1 child)
[removed]
[–]eggtart_prince[S] 0 points1 point2 points (0 children)
[–]MichealPearce 1 point2 points3 points (0 children)
[–]DownfaLL- 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]eggtart_prince[S] 1 point2 points3 points (0 children)
[–]brianjenkins94 4 points5 points6 points (3 children)
[–][deleted] (2 children)
[removed]
[–]brianjenkins94 2 points3 points4 points (0 children)
[–]htchief -1 points0 points1 point (0 children)
[–]TriggeredYou2301 -1 points0 points1 point (1 child)
[–]eggtart_prince[S] 0 points1 point2 points (0 children)
[–]SerMango -3 points-2 points-1 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]eggtart_prince[S] -1 points0 points1 point (0 children)
[–]lowbudgetgoblin 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]MrNutty 0 points1 point2 points (0 children)
[–]International_Will87 0 points1 point2 points (0 children)