question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RC.1 angular build fails in production mode

See original GitHub issue

Bug Report

This issue is fixed already and rc.2 will coming soon!

Ionic version:

[x] 4.0.0-rc.1

Current behavior: rc.1 isn’t working in production mode ( ng build --prod / ionic build --prod ). if you run without --prod , everything is working

There are already some issues about (see for there console logs):

Unhandled Promise rejection: c.data is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: c.data is not a function (#17032 / #17033 )

#17029

Other errors are:

  • Menu: must have a “content” element to listen for drag events on.

I will close them so we just have one issue about this topic. It’s not only related to @ViewChild(), ion button disabled is also not working and slides only shows the first side

I did some resarch and the issue must be related in #16966. If I build with this PR, production isn’t working anymore. I can be wrong, so everyone can do tests too 😃

Expected behavior: Should work in production build too

Steps to reproduce:

Add e.g. @ViewChild and try to access to it. Or add a split pane and a menu.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
paulstelzercommented, Jan 14, 2019

Everyone who wants to try it out, youcan install the latest dev build by npm install @ionic/angular@dev

1reaction
eduardoRothcommented, Jan 10, 2019

@paulstelzer icons work for me, but I have the error for slides: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

RC.1 angular build fails in production mode #17034 - GitHub
Ionic version: [x] 4.0.0-rc.1 Current behavior: rc.1 isn't working in production mode ... RC.1 angular build fails in production mode #17034.
Read more >
Angular-cli aot build fails in production mode - Stack Overflow
So the project builds fine with ng build --aot=true but fails with this error using ng build --prod.
Read more >
Building and serving Angular apps
This page discusses build-specific configuration options for Angular projects. Configuring application environmentslink. You can define different named ...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
Ahead-of-time (AOT) compilation - Angular
The Angular ahead-of-time (AOT) compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found