Orm for sqlite ionic 3


#1

Hello everyone. someone knows what ORM can use for sqlite in ionic 3.2, I try using typeorm but have a problem with the ionic prod script.


#3

I’m also interested on any ORM alternative to Typeorm.

I had the same issue: the production build is successful but an exception related to circular dependencies is thrown by one of my provider at run-time.

A similar issue has been reported here: https://github.com/typeorm/ionic-example/issues/27

So to get around it, I’ve disabled the mangle option by overriding uglifyjs configuration as follow:

// config/uglifyjs.config.js
const defaultConfig = require('@ionic/app-scripts/config/uglifyjs.config.js');
module.exports = Object.assign(defaultConfig, { mangle: false });

And in my package.json file:

{
...
  "config": {
    "ionic_uglifyjs": "./config/uglifyjs.config.js"
  }
...
}

#4

Hi @hariman
I try this. Everything builds well, but when it starts it goes blank. I do not know if I really managed to disable this option.


#5

Maybe it’s related to something else. Did you check your log output?