Error upgrading to anything above beta.3 - this._renderer.removeClass is not a function
After upgrading from beta.3 to any of the newer versions, my application crashes with the following error
ERROR Error: Uncaught (in promise): TypeError: this._renderer.removeClass is not a function TypeError: this._renderer.removeClass is not a function at MdListItem.set [as _hasAvatar] (material.es5.js:11707) at checkAndUpdateQuery (core.es5.js:11487) at execQueriesAction (core.es5.js:12416) at createViewNodes (core.es5.js:12053) at callViewAction (core.es5.js:12394) at execComponentViewsAction (core.es5.js:12333) at createViewNodes (core.es5.js:12051) at createRootView (core.es5.js:11929) at callWithDebugContext (core.es5.js:13060) at Object.debugCreateRootView [as createRootView] (core.es5.js:12521) at MdListItem.set [as _hasAvatar] (material.es5.js:11707) at checkAndUpdateQuery (core.es5.js:11487) at execQueriesAction (core.es5.js:12416) at createViewNodes (core.es5.js:12053) at callViewAction (core.es5.js:12394) at execComponentViewsAction (core.es5.js:12333) at createViewNodes (core.es5.js:12051) at createRootView (core.es5.js:11929) at callWithDebugContext (core.es5.js:13060) at Object.debugCreateRootView [as createRootView] (core.es5.js:12521) at resolvePromise (zone.js:769) at resolvePromise (zone.js:740) at zone.js:817 at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424) at Object.onInvokeTask (core.es5.js:4136) at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423) at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:191) at drainMicroTaskQueue (zone.js:584) at XMLHttpRequest.ZoneTask.invoke (zone.js:490)
From debugging I can see the _renderer is a RendererAdapter, which looking at the angular source (https://github.com/angular/angular/blob/master/packages/core/src/view/refs.ts) doesn't have a removeClass function. However, the _renderer has a delegate property of type DebugRenderer2 which does have the removeClass function, so am I using an incompatible version of Angular?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cli: 1.1.0 node: 7.7.1 os: darwin x64 @angular/animations: 4.0.0 @angular/common: 4.0.0 @angular/compiler: 4.0.0 @angular/core: 4.0.0 @angular/flex-layout: 2.0.0-beta.8 @angular/forms: 4.0.0 @angular/http: 4.0.0 @angular/material: 2.0.0-beta.3 @angular/platform-browser: 4.0.0 @angular/platform-browser-dynamic: 4.0.0 @angular/router: 4.0.0 @angular/cli: 1.1.0 @angular/compiler-cli: 4.0.0
Looks similar to https://github.com/angular/material2/issues/4590 and maybe https://github.com/angular/flex-layout/issues/270
Looks like the same problem as #4590
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.