You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In developement and Prod android version works fine. But when I tried with the browser. I get the error.
I follow the [https://github.com/typeorm/ionic-example]
Any help?
here is my config file.
import{Expense}from'./../entities/expense';import{Medicine}from'./../entities/medicine';import{Client}from'./../entities/client';import{Component}from'@angular/core';import{Platform}from'ionic-angular';import{StatusBar}from'@ionic-native/status-bar';import{SplashScreen}from'@ionic-native/splash-screen';import{createConnection}from'typeorm'import{Company}from'../entities/company';import{Order}from'../entities/order';import{OrderDetail}from'../entities/orderDetail';
@Component({templateUrl: 'app.html'})exportclassMyApp{rootPage: string="LoginPage";constructor(platform: Platform,statusBar: StatusBar,splashScreen: SplashScreen){platform.ready().then(async()=>{// Okay, so the platform is ready and our plugins are available.// Here you can do any higher level native things you might need.statusBar.styleDefault();splashScreen.hide();// Depending on the machine the app is running on, configure// different database connectionsif(platform.is('cordova')){// Running on device or emulatorawaitcreateConnection({type: 'cordova',database: 'test',location: 'default',synchronize: true,logging: ['error','query','schema'],entities: [Client,Medicine,Company,Order,OrderDetail,Expense]});}else{// Running app in browserawaitcreateConnection({type: 'sqljs',autoSave: true,location: 'browser',synchronize: true,logging: ['error','query','schema'],entities: [Client,Medicine,Company,Order,OrderDetail,Expense]});}});}}
The text was updated successfully, but these errors were encountered:
If your app runs on a device in development and production mode, it should also work in the browser in both modes.
Can you provide a small repository for me to take a look at it?
In developement and Prod android version works fine. But when I tried with the browser. I get the error.
I follow the [https://github.com/typeorm/ionic-example]
Any help?
here is my config file.
The text was updated successfully, but these errors were encountered: