Components: Generate material setup using ng add fails

Created on 19 Apr 2018  路  5Comments  路  Source: angular/components

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 :)

P2

Most helpful comment

When i do:

npm install --save @angular/material @angular/cdk

it installs below:

Then, as per above solutions:

I do:

ng add @angular/material

it throws as below:

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

NPM Version: 6.1.0
Angular CLI: 6.0.8
Node: 8.11.3
OS: darwin x64
Angular: 6.0.7

All 5 comments

some issue

@andrewseguin fixed ??

When i do:

npm install --save @angular/material @angular/cdk

it installs below:

Then, as per above solutions:

I do:

ng add @angular/material

it throws as below:

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

NPM Version: 6.1.0
Angular CLI: 6.0.8
Node: 8.11.3
OS: darwin x64
Angular: 6.0.7

I am also facing the issue when I tried:
ng add @progress/kendo-angular-dropdowns

It installed below:
"@progress/kendo-angular-dropdowns": "^3.4.2"

But, at the end it throws as below:

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

Angular CLI: 7.3.0
Node: 10.11.0
OS: win32 x64
Angular: 7.2.3
NPM Version: 6.4.1

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tyler2cr picture tyler2cr  路  57Comments

lfroment0 picture lfroment0  路  108Comments

kara picture kara  路  94Comments

mmalerba picture mmalerba  路  127Comments

jelbourn picture jelbourn  路  132Comments