Skip to content

Generate material setup using ng add fails #10912

@tobi-or-not-tobi

Description

@tobi-or-not-tobi

Bug, feature request, or proposal:

Bug

What is the expected behavior?

As @jelbourn was presenting yesterday on stage at ngconf, I've tried to install the typical material setup using ng add. This should have resulted in an updated angular.json file, index.html, etc.

What is the current behavior?

Running ng add @angular/material fails with the following 2 lines:

Installing packages for tooling via npm.
Cannot read property 'includes' of undefined

What are the steps to reproduce?

ng new myapp
cd myapp
npm i @angular/material@next @angular/cdk@next --save
ng add @angular/material

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

Angular CLI: 6.0.0-rc.5
@angular/cdk 6.0.0-rc.12
@angular/material 6.0.0-rc.12

Is there anything else we should know?

I like your stuff :)

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions