components icon indicating copy to clipboard operation
components copied to clipboard

Material causing errors with JIT compilation

Open moshecmc opened this issue 9 years ago • 2 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

ng serve should produce this: work

What is the current behavior?

ng serve produces this: nowork

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U

ng serve

What is the use-case or motivation for changing an existing behavior?

I would like to use ng serve in dev mode without compromise.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 4.1.3 Material: 2.0.0-beta.5 OS: Windows 10 TypeScript: 2.2.1

Is there anything else we should know?

ng serve -prod does not cause this issue

AppComponent.html:207 ERROR TypeError: this._renderer.addClass is not a function
    at MdListItem.set [as _hasAvatar] (material.es5.js:11704)
    at checkAndUpdateQuery (core.es5.js:11545)
    at execQueriesAction (core.es5.js:12561)
    at createViewNodes (core.es5.js:12115)
    at createEmbeddedView (core.es5.js:11979)
    at callWithDebugContext (core.es5.js:13206)
    at Object.debugCreateEmbeddedView [as createEmbeddedView] (core.es5.js:12739)
    at TemplateRef_.createEmbeddedView (core.es5.js:10304)
    at ViewContainerRef_.createEmbeddedView (core.es5.js:10096)
    at NgIf._updateView (common.es5.js:1947)

@angular/material/MdListItem

moshecmc avatar May 23 '17 20:05 moshecmc

Related to #4584

tinayuangao avatar May 23 '17 23:05 tinayuangao

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.