Open bjardon opened 5 years ago
So; I've been working on this for quite some time and made some progress, but haven't been able to fix the error altogether. This is what I've learned.
The cause of the exception is the remote method itself. When the loopback's model.js
script attempts to register the method, it checks the typeof
the nestedFn
; if it is anything other than function
the above mentioned exception is thrown.
After some debugging and a lot of console.log
s I found that the model's prototype does not contain a function called __exists__ancestorObjects
; thus encounters an undefined
value.
I installed and configured the mixin following the documentation, but when launching the app an exception prevents the app from running.
I double checked the config and made sure I followed each step in the docs, but can't figure out the error.
The application launches successfully if I remove the
mixins
object from the model json file, however the tree methods are not initialized.