Known issues
Property values are undefined
Due to some inconsistent behaviour in some Babel 7 versions (related to the class properties), a workaround with a model constructor is required.
The library doesn't work in Internet Explorer 11
Make sure you're polyfilling all required functionality:
The easiest way is to add a generic polyfill:
- Babel 6 - Install
babel-polyfill@6and import it in your entry file - Babel 7 - Install
@babel/polyfilland import it in your entry file - TypeScript - If you're using the target
ES3,ES5or you don't have a target defined, you should add the libES2015to yourtsconfig.jsoncompiler options.
I'm getting a maximum call stack error
This can happen if you have an existing model instance, but want to update it with new relationships. Make sure you declare all relationships in the model class or use the addReference method to add new dynamic references. This issue should be fixed once #108 is done.
Having other issues?
Feel free to open an issue.