ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
608 stars 305 forks source link

App showing white screen when building with --prod flag #625

Closed AndreasGassmann closed 7 years ago

AndreasGassmann commented 7 years ago

Short description of the problem:

When building an app with the --prod flag, the app builds without any errors. Even the --debug flag doesn't reveal any errors (I can post the logs if needed).

However, when I run the app on my iPhone, I get only a white screen and the following js error: Uncaught Error: Cannot find module "./app.module.ngfactory".

I have applied all the changes from the "breaking changes" section in the 0.0.47 changelog.

ionic serve and ionic build ios (without --prod flag) work without any issues.

What behavior are you expecting?

Either the build process should throw errors whenever there is a problem, or the app should run if there are no build errors :)

Steps to reproduce:

I don't know how to reproduce this error, but it happens every time I build my app. I'm happy to post any relevant code snippets, but I have no idea what code might be relevant to that error.

Which @ionic/app-scripts version are you using?

$ionic info
Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.9.0 
ios-sim version: 5.0.6 
OS: macOS Sierra
Node Version: v7.0.0
Xcode version: Xcode 8.1 Build version 8B62

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Initially I thought it was a problem with my app specifically, but in the ionic-worldwide slack channel I was talking with someone who had the exact same issue.

I asked the same question on stackoverflow, but so far no answers: http://stackoverflow.com/questions/41475933/error-running-app-after-upgrading-to-ionic-rc4

ataraxus commented 7 years ago

Same issue here:

`$ ionic info

Your system information:

 ordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.1
Xcode version: Not installed

I also did a `npm run build"build": "ionic-app-scripts build --prod --debug"`

http://pastebin.com/ZdhLi2nP It would be very helpfull if ionic prints the issue it stumbles upon.

The code which gets produced looks like this:

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(103);
throw new Error("Cannot find module \"./app.module.ngfactory\"");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0)
danbucholtz commented 7 years ago

Can you provide a simple repository recreating the issue?

Please start with ionic start myApp blank --v2 to build a blank template.

Thanks, Dan

ataraxus commented 7 years ago

@danbucholtz since my project got quite large by the time, it is difficult to decide which element to transfer into a blank project to see if it breaks it there too...

Maybe this was not clear: both @AndreasGassmann and my project broke after upgrading to the latest build chain. we verified in slack that our migration was done according the migration guide.

Could you provide us a hint what could be a problem by switching to 48 from 46 and also the ionic-cli from 2.1.13 -> 2.1.18 ?

ataraxus commented 7 years ago

Also i think the biggest issue here is, that the ngc doesn't provide any hints whats going on. Is the output of it omitted?

AndreasGassmann commented 7 years ago

My project is also quite large, but I am trying to pinpoint the problem. I don't have a lot of time at the moment, but I took my app and deleted everything step by step. I'm down to a single page now, with all other pages/providers/pipes/etc deleted.

Sadly the problem persists. But I noticed something odd. I forgot to remove some of my providers from the app.components.ts file, so they were still imported and added to the NgModule providers. Running ionic build ios --prod gave no build errors, but the app didn't work (same error as in the original post). But when using ionic serve I got a runtime error saying that it couldn't find the provider file (which is correct because I deleted it). Maybe this is intended because the AotCompiler only includes the files that are actually needed in the app, but it's still strange that there was no error.

I also saw that the AotCompiler replaced the content of the main.ts file:

[ DEBUG! ]  [AotCompiler] compile: Modified File Content: import { platformBrowser } from '@angular/platform-browser'; 
            import { AppModuleNgFactory } from './app.module.ngfactory'; import { enableProdMode } from '@angular/core'; 
            enableProdMode(); platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);  MEM: 223.2MB 

Should the ./app.module.ngfactory file be located in the build/ folder?

I'll try to set up a new project and reproduce the error there as soon as I have time.

abdel-ships-it commented 7 years ago

Same issue here on 0.0.48

Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002

I have quite a large project so I can't really reproduce the problem either. But I am sure it has to do with NGC errors.

I deliberately made mistakes to see if it would throw errors, but it silently fails.

Example:

My template looks like this <button (click)="loadColorpickerr()" ion-button icon outline>

My class has this method loadColorpicker()

Beside that NGC used to take much longer (40-60 seconds) and during the last few builds I have been getting somewhere around 20-25 seconds build times.

danbucholtz commented 7 years ago

@realappie,

ngc is faster in the past few releases because we use in-memory file storage since ngc reads each file from disk three times. For larger projects I've seen numbers about ~50% faster so your times jive well.

In 0.0.47, so a few weeks back, we made the change to put ngc on parity with ionic serve in terms of error reporting. If your app and templates work with ionic serve, then they should work with ionic run android for example.

I started the process of adding a configuration toggle to output error information, but I did not finish. I ran into some trouble on Windows, but had it working on Mac/Linux. In the next month or so I'll hopefully have some time to continue looking at this.

Thanks, Dan

abdel-ships-it commented 7 years ago

@danbucholtz Great! Sounds like a big improvement!

In 0.0.47, so a few weeks back, we made the change to put ngc on parity with ionic serve in terms of error reporting. If your app and templates work with ionic serve, then they should work with ionic run android for example.

This is great, but I definitely look forward to seeing the logs having a toggle.

@AndreasGassmann Upgrading to 1.0.0 fixed it for me! Could you try reproducing the same problem there?

ataraxus commented 7 years ago

@danbucholtz together with @AndreasGassmann (who acutally narrowed the issue down) we were able to reproduce this issue.

please check out this repo which reproduces the issue.

This issue will affect all user who are managed to upgrade their projects from on rc1 till now:

https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#200-rc1-2016-10-13

which involved setting their dev deps typescript to:

`"typescript": "^2.0.3"

and then stayed with it or like me upgraded the version but kept the ^. If one searches 2.0.3 in the ionic issues, one will find some guys posting their package.json where this line is also present, so their build will fail the next time they do an npm install and --prod build 1. This causes now the installation of Typescript version 2.1.4 which silently breaks the ionic build. It would be interesting whats the issue is with this upgrade and why it breaks build, but more impoartantly* i would appreciate that ionic somehow manages to inform one of the issue. Since until now there is no indication that something wennt wrong and one has to poke in the dark to find this issue, which is very time consuming.

Again thanks @AndreasGassmann for spotting this, i wasn't able to find by myself!

*1 since --prod is not default on --release IMHO this issue doesn't affect as many people as it would if it were default or more commonly known that this has to be set explicitly.

AndreasGassmann commented 7 years ago

As @ataraxus said, fixing the typescript version at 2.0.x solved the issue for me.

@danbucholtz I suggest 2 things:

Gp2mv3 commented 7 years ago

I have the same issue with typescript 2.0.9 and 2.0.10. I have no compilation error and ionic serve is working fine... Here is my ionic build --prod --debug log:

[23:41:18] ionic-app-scripts 1.0.0 [23:41:18] build prod started ... MEM: 127.6MB [23:41:18] clean started ... MEM: 129.7MB [ DEBUG! ] [Clean] clean: cleaning /home/gp2mv3/www/covevent/refonte2/ionic/www/build MEM: 129.7MB [23:41:18] clean finished in 8 ms MEM: 129.9MB [23:41:18] copy started ... MEM: 129.9MB [23:41:18] ngc started ... MEM: 129.9MB [ DEBUG! ] [AotCompiler] compile: starting codegen ... MEM: 211.4MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/core/src/application_module.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/common_module.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_class.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_for.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_if.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_style.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_switch.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/common/src/directives/ng_plural.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/module.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/action-sheet/action-sheet-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/alert/alert-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/util/click-block.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/avatar/avatar.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/backdrop/backdrop.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/badge/badge.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/button/button.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/card/card.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/checkbox/checkbox.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/chip/chip.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/grid/grid.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/content/content.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/datetime/datetime.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/fab/fab.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/toolbar/toolbar.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/show-hide-when/show-hide-when.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/icon/icon.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/img/img.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/infinite-scroll/infinite-scroll.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/infinite-scroll/infinite-scroll-content.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/app/app-root.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/item/item.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/item/item-sliding.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/item/item-reorder.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/label/label.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/list/list.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/list/list-header.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/menu/menu.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/menu/menu-close.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/menu/menu-toggle.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/input/native-input.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/nav/nav.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/navbar/navbar.ngfactory.ts to virtual file system MEM: 231.7MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/nav/nav-pop.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/nav/nav-push.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/note/note.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/option/option.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/nav/overlay-portal.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/picker/picker-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/radio/radio-button.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/radio/radio-group.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/range/range.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/refresher/refresher.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/refresher/refresher-content.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/scroll/scroll.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/searchbar/searchbar.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/segment/segment.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/select/select.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/slides/slides.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/spinner/spinner.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/tabs/tab.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/tabs/tabs.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/tabs/tab-button.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/tabs/tab-highlight.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/input/input.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/thumbnail/thumbnail.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/toggle/toggle.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/toolbar/toolbar-item.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/toolbar/toolbar-title.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/typography/typography.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/virtual-scroll/virtual-item.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/virtual-scroll/virtual-scroll.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/loading/loading-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/modal/modal-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/popover/popover-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/components/toast/toast-component.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/platform-browser/src/browser.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/http/src/http_module.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/select_control_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/select_multiple_control_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/default_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/range_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/checkbox_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/radio_control_value_accessor.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/ng_control_status.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/validators.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/form_providers.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/ng_model.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/ng_model_group.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/ng_form.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/reactive_directives/form_control_directive.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/reactive_directives/form_group_directive.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/reactive_directives/form_control_name.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/@angular/forms/src/directives/reactive_directives/form_group_name.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [NgcCompilerHost] writeFile: adding /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/angular2-moment/moment.module.ngfactory.ts to virtual file system MEM: 231.6MB [ DEBUG! ] [AotCompiler] compile: starting codegen ... DONE MEM: 231.6MB [ DEBUG! ] [AotCompiler] compile: Creating and validating new TypeScript Program ... MEM: 231.6MB [ DEBUG! ] [AotCompiler] compile: Creating and validating new TypeScript Program ... DONE MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: The following files are included in the program: MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/app/app.component.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/app/app.module.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/app/cordova.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/app/main.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/components/event-list-item/event-list-item.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/components/help-overlay/help-overlay.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/config.debug.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/config.release.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/config.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/declarations.d.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/ask.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/crash.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/event.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/question.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/rider.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/models/user.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/account-create/account-create.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/account-login/account-login.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/account-settings/account-settings.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/answer/answer.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/apropos/apropos.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/day-popover/day-popover.ts
MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/event-create/event-create.ts
MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/event-dash/event-dash.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/event-details/event-details.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/event-edit/event-edit.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/event-join/event-join.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/events-list/events-list.ts
MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/help/help.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pages/questions/questions.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/pipes/moment-utc.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/providers/authProvider.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/ask-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/auth-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/events-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/facebook-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/ga-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/geocode-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/map-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/questions-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/title-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/services/user-service.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/typings/branch/branch-node.d.ts
MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/typings/branch/branch.d.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/typings/index.d.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/utils/form-validators.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: /home/gp2mv3/www/covevent/refonte2/ionic/src/utils/moment-locale.ts MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: Starting to process and modify entry point ... MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: Resolving NgModule from entry point MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: Dynamically changing entry point content to AOT mode content MEM: 254.0MB [ DEBUG! ] [AotCompiler] compile: Modified File Content: import { platformBrowser } from '@angular/platform-browser'; import { AppModuleNgFactory } from './app.module.ngfactory'; import { enableProdMode } from '@angular/core'; enableProdMode(); platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); MEM: 253.9MB [ DEBUG! ] [AotCompiler] compile: Starting to process and modify entry point ... DONE MEM: 254.2MB [ DEBUG! ] [AotCompiler] compile: Removing decorators from program files ... MEM: 254.2MB [ DEBUG! ] [AotCompiler] compile: Removing decorators from program files ... DONE MEM: 329.8MB [23:41:30] ngc finished in 11.74 s MEM: 329.8MB [23:41:30] webpack started ... MEM: 329.8MB [ DEBUG! ] [IonicEnvironmentPlugin] apply: creating environment plugin MEM: 333.8MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/index.html to /home/gp2mv3/www/covevent/refonte2/ionic/www/index.html MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/manifest.json to /home/gp2mv3/www/covevent/refonte2/ionic/www/manifest.json MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/service-worker.js to /home/gp2mv3/www/covevent/refonte2/ionic/www/service-worker.js MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/ionicons.scss to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.scss MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionicons/dist/fonts/ionicons.woff2 to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.woff2 MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/ionicons.woff2 to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.woff2 MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/noto-sans.scss to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/noto-sans.scss MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-bold.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-bold.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-bold.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-bold.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-light.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-light.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-light.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-light.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-medium.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-medium.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-medium.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-medium.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-regular.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-regular.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto-regular.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto-regular.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/roboto.scss to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/roboto.scss MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-144x144.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-144x144.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-192x192.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-192x192.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-36x36.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-36x36.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-48x48.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-48x48.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-72x72.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-72x72.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/android-icon-96x96.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/android-icon-96x96.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-114x114.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-114x114.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-120x120.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-120x120.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-144x144.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-144x144.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-152x152.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-152x152.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-180x180.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-180x180.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-57x57.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-57x57.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-60x60.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-60x60.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-72x72.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-72x72.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-76x76.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-76x76.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon-precomposed.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon-precomposed.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/apple-icon.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/apple-icon.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/browserconfig.xml to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/browserconfig.xml MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/favicon-16x16.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/favicon-16x16.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/favicon-32x32.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/favicon-32x32.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/favicon-96x96.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/favicon-96x96.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/favicon.ico to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/favicon.ico MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/manifest.json to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/manifest.json MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/ms-icon-144x144.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/ms-icon-144x144.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/ms-icon-150x150.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/ms-icon-150x150.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/ms-icon-310x310.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/ms-icon-310x310.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/fav/ms-icon-70x70.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fav/ms-icon-70x70.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/create-event.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/create-event.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/identity.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/identity.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/layers-2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/layers-2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/layers.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/layers.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/marker-icon-2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/marker-icon-2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/marker-icon.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/marker-icon.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/marker-shadow.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/marker-shadow.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/corider.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/corider.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/driver.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/driver.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/driver@2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/driver@2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/driverA.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/driverA.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/driverW.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/driverW.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/event.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/event.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/marker-icon-2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/marker-icon-2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/marker-icon.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/marker-icon.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/marker-shadow.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/marker-shadow.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/neutral.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/neutral.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/neutral@2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/neutral@2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/passenger.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/passenger.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/passenger@2x.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/passenger@2x.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/passengerA.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/passengerA.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/passengerW.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/passengerW.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/markers/user.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/markers/user.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/polyfills/polyfills.js to /home/gp2mv3/www/covevent/refonte2/ionic/www/build/polyfills.js MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionicons/dist/fonts/ionicons.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/ionicons.woff to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.woff MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/map-button.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/map-button.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/map-summary.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/map-summary.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/map-switch.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/map-switch.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/map-title.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/map-title.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionicons/dist/fonts/ionicons.eot to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.eot MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionicons/dist/fonts/ionicons.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/ionicons.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/src/assets/img/help/map-map.png to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/img/help/map-map.png MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionicons/dist/fonts/ionicons.svg to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/ionicons.svg MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/noto-sans-bold.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/noto-sans-bold.ttf MEM: 334.9MB [ DEBUG! ] Successfully copied /home/gp2mv3/www/covevent/refonte2/ionic/node_modules/ionic-angular/fonts/noto-sans-regular.ttf to /home/gp2mv3/www/covevent/refonte2/ionic/www/assets/fonts/noto-sans-regular.ttf MEM: 334.9MB [23:41:30] copy finished in 12.00 s MEM: 334.9MB [ DEBUG! ] [Webpack] loader: processing the following file: /home/gp2mv3/www/covevent/refonte2/ionic/src/app/main.ts MEM: 334.9MB [ DEBUG! ] [Webpack] loader: Found /home/gp2mv3/www/covevent/refonte2/ionic/src/app/main.js in file cache MEM: 334.9MB [ DEBUG! ] [Webpack] loader: Found /home/gp2mv3/www/covevent/refonte2/ionic/src/app/main.js.map in file cache MEM: 334.9MB [23:41:31] webpack finished in 1.69 s MEM: 371.9MB [23:41:31] uglifyjs started ... MEM: 371.9MB [ DEBUG! ] worker created, taskModule: uglifyjs, pid: 16865 MEM: 372.1MB [23:41:31] sass started ... MEM: 372.1MB [ DEBUG! ] sass outFile: /home/gp2mv3/www/covevent/refonte2/ionic/www/build/main.css MEM: 372.2MB [ DEBUG! ] sass includePaths: /home/gp2mv3/www/covevent/refonte2/ionic/src,node_modules/ionic-angular/themes,node_modules/ionicons/dist/scss,node_modules/ionic-angular/fonts MEM: 372.2MB [ DEBUG! ] sass moduleDirectories: 38 MEM: 372.2MB [ DEBUG! ] sass userSassVariableFiles: 1 MEM: 372.2MB [ DEBUG! ] sass componentSassFiles: 0 MEM: 372.2MB [ DEBUG! ] sass, start postcss/autoprefixer MEM: 397.1MB [ DEBUG! ] sass: postcss/autoprefixer completed MEM: 402.5MB [ DEBUG! ] sass start write output: /home/gp2mv3/www/covevent/refonte2/ionic/www/build/main.css MEM: 402.5MB [ DEBUG! ] sass saved output: /home/gp2mv3/www/covevent/refonte2/ionic/www/build/main.css MEM: 378.9MB [23:41:33] sass finished in 1.45 s MEM: 378.9MB [23:41:33] cleancss started ... MEM: 379.1MB [ DEBUG! ] worker created, taskModule: cleancss, pid: 16871 MEM: 379.1MB [23:41:34] cleancss finished in 785 ms MEM: 379.1MB [ DEBUG! ] worker exited, taskModule: cleancss, pid: 16871 MEM: 379.1MB [23:41:36] uglifyjs finished in 4.19 s MEM: 379.1MB [ DEBUG! ] worker created, taskModule: lint, pid: 16886 MEM: 379.1MB [23:41:36] build prod finished in 17.67 s MEM: 379.1MB [ DEBUG! ] worker exited, taskModule: uglifyjs, pid: 16865 MEM: 379.1MB [ DEBUG! ] worker exited, taskModule: lint, pid: 16886 MEM: 379.2MB

Do you have an idea ?

Thanks !

ataraxus commented 7 years ago

@Gp2mv3 what is your exact error message, also provide your ionic info output, package.json and tsconfig.json.

Did you migrated your project or did you started just recently a new one?

danbucholtz commented 7 years ago

@ataraxus,

Good detective work! So the issue was TypeScript 2.1 if I'm understanding correctly? I will make sure we are clear about that in the changelog for RC5.

Thanks, Dan

ataraxus commented 7 years ago

@danbucholtz, correct, but i can't tell you why it breaks. ionic is plugging away and there is no indication, that anything explode till you start the app.

danbucholtz commented 7 years ago

Yeah, this is a known Angular issue. Unfortunately ngc doesn't throw an error with TS 2.1.x yet, it just silently fails and carries on.

Thanks, Dan

Gp2mv3 commented 7 years ago

Here is my ionic info:

Cordova CLI: 6.4.0 Ionic Framework Version: 2.0.0-rc.4 Ionic CLI Version: 2.1.17 Ionic App Lib Version: 2.1.7 Ionic App Scripts Version: 1.0.0 ios-deploy version: Not installed ios-sim version: Not installed OS: Linux 3.19 Node Version: v6.7.0 Xcode version: Not installed

I'm on Ubuntu with npm at 3.10.8. My typescript is 2.0.9 but the issue is the same in 2.0.10.

My tsconfig is:

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "module": "commonjs",
    "moduleResolution": "node",
    "noImplicitAny": false,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5"
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  },
  "angularCompilerOptions": {
    "annotationsAs": "static fields",
    "annotateForClosureCompiler": true
  }
}

and my package.json:

{
  "dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "^1.1.7",
    "@types/leaflet": "^0.7.7",
    "angular2-clipboard": "^0.2.12",
    "angular2-jwt": "^0.1.25",
    "angular2-moment": "^1.0.0-beta.3",
    "branch-sdk": "^2.12.0",
    "buffer": "^5.0.0",
    "google-libphonenumber": "^1.1.0",
    "ionic-angular": "2.0.0-rc.4",
    "ionic-native": "^2.2.11",
    "ionicons": "~3.0.0",
    "js-base64": "^2.1.9",
    "leaflet": "^0.7.7",
    "moment": "^2.15.1",
    "ng2-translate": "^5.0.0",
    "node-version-compare": "^1.0.1",
    "plist": "^2.0.1",
    "reflect-metadata": "^0.1.8",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "~0.6.26",
    "@types/mapbox-gl": "^0.29.0",
    "mapbox-gl": "^0.30.0"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.47",
    "browserify-istanbul": "^2.0.0",
    "buffer": "^5.0.0",
    "codecov.io": "^0.1.6",
    "del": "^2.2.0",
    "gulp": "^3.9.1",
    "gulp-rename": "^1.2.2",
    "gulp-tslint": "^6.0.2",
    "gulp-typescript": "^2.13.6",
    "gulp-watch": "^4.3.5",
    "ionic-gulp-browserify-typescript": "^1.0.1",
    "ionic-gulp-fonts-copy": "^1.0.0",
    "ionic-gulp-html-copy": "^1.0.0",
    "ionic-gulp-sass-build": "^1.0.0",
    "ionic-gulp-scripts-copy": "^2.0.0",
    "isparta": "^4.0.0",
    "jasmine-core": "^2.4.1",
    "js-base64": "^2.1.9",
    "karma": "^1.2.0",
    "karma-browserify": "^5.1.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-coverage": "^1.1.1",
    "karma-jasmine": "^1.0.2",
    "karma-mocha-reporter": "^2.1.0",
    "karma-phantomjs-launcher": "^1.0.1",
    "mkpath": "^1.0.0",
    "phantomjs-prebuilt": "^2.1.12",
    "run-sequence": "^1.1.5",
    "traceur": "0.0.111",
    "ts-node": "^1.3.0",
    "tsify": "^1.0.3",
    "tslint": "^3.14.0",
    "typescript": "^2.0.9"
  },
  "scripts": {
    "karma": "gulp --gulpfile test/gulpfile.ts --cwd ./ karma-debug",
    "test": "gulp --gulpfile test/gulpfile.ts --cwd ./ unit-test",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve",
    "build": "ionic-app-scripts build",
    "serve": "ionic-app-scripts serve"
  },
  "name": "covevent",
  "description": "CovEvent: Le Doodle du Covoiturage !",
  "private": true,
  "version": "0.0.18",
  "cordovaPlugins": [
    "cordova-plugin-splashscreen",
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard",
    "cordova-plugin-whitelist",
    "cordova-plugin-publish",
    "cordova-plugin-datepicker",
    "cordova-plugin-x-socialsharing"
  ],
  "cordovaPlatforms": [
    "ios",
    "android"
  ]
}
danbucholtz commented 7 years ago

@Gp2mv3,

More than likely you have TypeScript 2.1.4 installed because "typescript": "^2.0.9" will install the latest non-breaking version which is 2.1.4.

Please try changing it from "typescript": "^2.0.9" to "typescript": "2.0.9" and do a rm -rf node_modules and then an npm install.

Thanks, Dan

Gp2mv3 commented 7 years ago

@danbucholtz Ha, it seems to give me errors now, but then, tsc is not typescript ? Because I installed typescript globally and by typing tsc -v, it says 2.0.9, thus I thought it was using this version...

Thanks for your help, this small change did it it seems.

danbucholtz commented 7 years ago

tsc is typescript but we don't use global typescript, we use local typescript.

It seems like this issue is resolved, so I'm going to close it.

We are making these changes in RC5 and will make sure it is crystal clear in the changelog for RC5 to update the package.json.

https://github.com/driftyco/ionic2-app-base/blob/rc.5/package.json#L31-L32

Thanks, Dan