Skip to content

undefined variable compiling core.scss #278

Closed

Description

@jamesbirtles

When compiling core.scss from the core package to use the elevation classes, it complains about an undefined variable $md-fast-out-slow-in-timing-function. It looks to me like core.scss or _elevation.scss should be importing _variables.scss but isn't.

Activity

  1. jelbourn commented on Apr 12, 2016

    @jelbourn
    Contributor

    Fixed in #293

  2. shotleybuilder commented on Jul 29, 2016

    @shotleybuilder

    Is this error back or is it my compile ...?

    Scss compiler error: Undefined variable: "$md-fast-out-slow-in-timing-function".

    My main.scss

    @import "../../node_modules/@angular2-material/core/style/core.scss";
    @import "../../node_modules/@angular2-material/button/button.scss";
    @import "../../node_modules/@angular2-material/input/input.scss";
    @import "../../node_modules/@angular2-material/checkbox/checkbox.scss";
    

    I've manually patched like this
    example checkbox.scss

    @import '../core/style/default-theme';
    @import '../core/style/theme-functions';
    @import '../core/style/variables';
    @import '../core/style/mixins';
    

    Because of #887

  3. shotleybuilder commented on Jul 30, 2016

    @shotleybuilder

    Fixed by changing core.scss from

    @import 'elevation';
    @import 'variables';
    

    to

    @import 'variables.scss';
    @import 'elevation.scss';
    

    The order matters.

    Then complained about the $md-light-theme-background' variable being undefined

    Simply added .scss extension to the imports in _default-them.scss.

    All now compiles.

  4. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions