-
Notifications
You must be signed in to change notification settings - Fork 310
ngfactory does not get created for the production build #553
Comments
i got same issue. |
Hmmm, can you try to track it down? I haven't seen this issue. Can you remove Thanks, |
Can you try npm run ionic:build --aot and see if that works? Then just open the index.html file in Chrome or something. Can you also update typescript in package.json to ensure it is 2.0.9? TypeScript 2.1 is the new default but it doesn't work with Angular AoT yet. I think minification may be breaking something. Please let me know how it goes. Thanks, |
Can you try again with Thanks, |
ionic run ios --prod has no issues with nightly version of app-scripts with typescript 2.0.9 and ionic 2.0.rc4 |
I had the same error when using
Removing it from package.json and adding it as CLI paramter worked for me.
|
This seems related to angular/angular#13344. Use TypeScript 2.0.X to make it work again. |
Hi all, This is resolved in Please let me know if you have any issues. Thanks, |
I got the same error, even with |
Uh oh!
There was an error while loading. Please reload this page.
Working with RC3 and build scripts 0.0.47. I can't get the prduction build running, saw several people with similar issues, none of the solutions seem to work for me. As far as I can tell ngc doesn't compile the ngfactory. Development build works fine.
The error message I get on the phones console:
EDIT: Maybe it's important to know that I have this issue ever since updating from RC1 to RC3. Later on I updated to the build scripts 0.0.47 (from 0.0.45) as this was suggested to resolve the issue, but it didn't help either.
EDIT2: I could get it working by downgrading build scripts to 0.0.45 and fixing a type error in some pipe. I think the problem in 0.0.47 was mainly due to:
The text was updated successfully, but these errors were encountered: