Hello,
When building our ionic app for iOS by use of the following command: ionic cordova build ios --prod
I keep getting the error below:
[22:18:04] Failed to parse and update main.ts content for AoT compilation. For now, the default fallback content will be used instead. Please consider updating /Users/v001/orderapp/src/app/main.ts with the content from the following link: https://github.com/ionic-team/ionic2-app-base/tree/master/src/app/main.ts
Here is the content of the main.ts file that we use:
window['__meteor_runtime_config__'] = {
DDP_DEFAULT_CONNECTION_URL: "https://urlhere.com"
}
import 'meteor-client';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { Mongo } from 'meteor/mongo'
import { MeteorObservable } from 'meteor-rxjs';
import { Meteor } from 'meteor/meteor';
import { AppModule } from './app.module';
Meteor.startup(() => {
const subscription = MeteorObservable.autorun().subscribe(() => {
if (Meteor.loggingIn()) {
return;
}
console.log("Subscription.unsubscribe in bootstrap");
//setTimeout(() => subscription.unsubscribe());
platformBrowserDynamic().bootstrapModule(AppModule);
});
});
Reading through some of the posts, I understand it is pretty much mandated not to change the content of the main.ts file. Is that true?
After I change the file with the original file from the repository on github, as described above. I still keep getting the same error/failed message. Any idea how this can happen and be resolved? Is currently preventing me from pushing the app to the app store.
Thanks in advance.