Sass error after update when running android build with --prod

After updating ionic, I get following error when building:


[15:02:00]  sass: ...ng/xx/xx/node_modules/ionic-angular/components/label/label.md.scss, line: 24 
            Undefined variable: "$item-md-body-text-font-size".

      L23:  [text-wrap] .label-md {
      L24:    font-size: $item-md-body-text-font-size;
      L25:    line-height: $item-md-body-text-line-height;

Error: Failed to render sass to css
>ionic info

global packages:

    @ionic/cli-utils : 1.0.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.0.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.0.0
    @ionic/cli-plugin-ionic-angular : 1.0.0
    Ionic Framework                 : ionic-angular 3.2.0

System:

    Node       : v7.9.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

Any idea?

I have found the variable to be defined in xx\node_modules\ionic-angular\components\item\item.md.scss but somehow it seems this file is not included in the build.
What am I doing wrong?

I have the same issue!! I did update 2 hours ago!

Great so I’m not the only one. But the fact that we are only 2 until now is a bit strange :smiley:
Did you find a solution already? Me not :confused:

I created a github issue: https://github.com/driftyco/ionic/issues/11648

edit1: Just found out:
This only happens when building for Android, not when using ionic serve!
edit2: It even does only happen when using “–prod” flag. Without this flag it works (although it is showing another error here: " Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio")

I have a solution in the file src/theme/variables.scss I add the next lines:
$item-md-body-text-line-height: 4em;
$item-md-body-text-font-size: 4em;
And all its solved;

unable to find variable.scss