You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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
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.
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!
Activity
MarkPieszak commentedon Nov 22, 2016
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-moduletag in your/Views/Home/Index.cshtmlpage, 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)
Adam-Langley commentedon Nov 22, 2016
Hi Mark,
Thanks for that. I'm very new to ng as you can see - your pointer gets me moving.
Thanks
MarkPieszak commentedon Nov 22, 2016
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!
SteveSandersonMS commentedon Nov 25, 2016
Thanks for answering @MarkPieszak!