Skip to content

regression: render.removeClass is not a function [5.0.0-beta.5] #18922

Closed
@0x-r4bbit

Description

I'm submitting a...

Current behavior

After upgrading to Angular 5.0.0-beta.5, NgClass directive in @angular/common seems to throw.

Here's what the error looks like:

EditorViewComponent.html:3 ERROR TypeError: _this._renderer.removeClass is not a function
    at common.es5.js:1872
    at Array.forEach (<anonymous>)
    at ClassDirective.webpackJsonp.../../../common/@angular/common.es5.js.NgClass._toggleClass (common.es5.js:1867)
    at common.es5.js:1837
    at Array.forEach (<anonymous>)
    at ClassDirective.webpackJsonp.../../../common/@angular/common.es5.js.NgClass._applyInitialClasses (common.es5.js:1837)
    at ClassDirective.set [as klass] (common.es5.js:1746)
    at ClassDirective.set [as classBase] (class.js:126)
    at updateProp (core.es5.js:10884)
    at checkAndUpdateDirectiveInline (core.es5.js:10576)

Minimal reproduction of the problem with instructions

Upgrade to 5.0.0-beta.5

Environment

Angular version: 5.0.0-beta.5

Browser:

  • Chrome (desktop) version 60.0.3112.90 (Official Build) (64-bit)
  • Chrome (Android) version XX
  • Chrome (iOS) version XX
  • Firefox version XX
  • Safari (desktop) version XX
  • Safari (iOS) version XX
  • IE version XX
  • Edge version XX

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