I’m trying to create a turnkey mobile app where my single app is created for different businesses with the same source where the structure of my app directory can look like this:
MyApp/
– src/
– business1/
– business2/
– etc
Inside business1 I added this to package.json:
"config": {
"ionic_src_dir": "../src"
},
Now when I when run ionic serve I get errors when importing modules:
[15:11:44] typescript: Users/aaronbratcher/ionicTraining/src/app/app.component.ts, line: 1
Cannot find module '@angular/core'.
L1: import { Component } from '@angular/core';
L2: import { Platform } from 'ionic-angular';
[15:11:44] typescript: Users/aaronbratcher/ionicTraining/src/app/app.component.ts, line: 2
Cannot find module 'ionic-angular'.
L1: import { Component } from '@angular/core';
L2: import { Platform } from 'ionic-angular';
L3: import { StatusBar } from '@ionic-native/status-bar';
[15:11:44] typescript: Users/aaronbratcher/ionicTraining/src/app/app.component.ts, line: 3
Cannot find module '@ionic-native/status-bar'.
L2: import { Platform } from 'ionic-angular';
L3: import { StatusBar } from '@ionic-native/status-bar';
L4: import { SplashScreen } from '@ionic-native/splash-screen';
Do I need to add another config entry for this to work?