Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Not compatible with Material (v2) #457

Closed

Description

@Adam-Langley

After installing ng2 material, I get this error...

An unhandled exception occurred while processing the request.

Exception: Call to Node module failed with error: TypeError: Cannot read property 'toLowerCase' of undefined
at new StyleCompatibility (node_modules\@angular\material\material.umd.js:2250:59)
at AppView._View_NavMenuComponent0.createInternal (NavMenuComponent.ngfactory.js:101:35)
at AppView.create (node_modules\@angular\core\bundles\core.umd.js:9419:25)
at AppView._View_AppComponent0.createInternal (AppComponent.ngfactory.js:27:14)
at AppView.create (node_modules\@angular\core\bundles\core.umd.js:9419:25)
at AppView._View_AppComponent_Host0.createInternal (AppComponent_Host.ngfactory.js:17:14)
at AppView.create (node_modules\@angular\core\bundles\core.umd.js:9419:25)
at ComponentFactory.create (node_modules\@angular\core\bundles\core.umd.js:6029:40)
at ApplicationRef_.bootstrap (node_modules\@angular\core\bundles\core.umd.js:7051:44)
at node_modules\@angular\core\bundles\core.umd.js:6960:93

Activity

  1. MarkPieszak commented on Nov 22, 2016

    @MarkPieszak
    Contributor

    Unfortunately Material2 is still in Alpha and incompatible with Angular Universal, but, for now if you'd like, you can disable server-side rendering by removing the asp-prerender-module tag in your /Views/Home/Index.cshtml page, to get building things for now, and eventually be able to turn it back on once Material is compatible.

    (You can follow angular/components#308 to track the issue)

  2. Adam-Langley commented on Nov 22, 2016

    @Adam-Langley
    Author

    Hi Mark,

    Thanks for that. I'm very new to ng as you can see - your pointer gets me moving.
    Thanks

  3. MarkPieszak commented on Nov 22, 2016

    @MarkPieszak
    Contributor

    Glad to help, at least this way you can keep going in the Material direction you want, without having anything hold you back. Plenty of other things to work on until this is all resolved.
    Keep it up!

  4. SteveSandersonMS commented on Nov 25, 2016

    @SteveSandersonMS
    Member

    Thanks for answering @MarkPieszak!

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