BradyNadeau / ionic-orm

Data-Mapper ORM for Ionic2, AngularJS, ( Hybrid Mobile Applications ), Supports WebSQL and SQLite databases. Currently in active development. - TypeORM Fork
https://typeorm.github.io
MIT License
48 stars 13 forks source link

Error: Use before declaration - In flattenEntityRelationTree on Windows/Edge #8

Open digaus opened 7 years ago

digaus commented 7 years ago

Works fine in Chrome and Android but when inserting entries with ManToOne-Relation I get this Error on Windows UWP:

ERROR Error: Uncaught (in promise): ReferenceError: Use before declaration
ReferenceError: Use before declaration
   at Anonymous function (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160651:87)
   at Anonymous function (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160651:48)
   at Array.prototype.filter (native code)
   at recursive (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160650:13)
   at EntityPersister.prototype.flattenEntityRelationTree (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160654:9)
   at Anonymous function (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160536:13)
   at Generator.prototype.next (native code)
   at Anonymous function (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160508:9)
   at t (ms-appx-web://io.cordova.myapp1f83a3/www/build/polyfills.js:3:14148)
   at Anonymous function (ms-appx-web://io.cordova.myapp1f83a3/www/build/main.js:160504:5)
main.js (1436,5)