ionic-framework: RC.1 angular build fails in production mode

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.

About this issue

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

Most upvoted comments

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

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