Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating application using @nrwl/schematic generates error "Cannot read property 'kind' of undefined" when using yarn #143

Closed
jerryorta-dev opened this issue Aug 11, 2018 · 8 comments
Labels
type: bug Something isn't working

Comments

@jerryorta-dev
Copy link

jerryorta-dev commented Aug 11, 2018

Steps to reproduce:

1. Create a workspace using @nrwl/shematics

1-ac

2. Generate app using @nrwl/schematics

Angular-Console generates this command line script:
ng generate application my-app --directory=my-app --viewEncapsulation=None --routing --prefix=my --style=scss --tags=ui

2-ac-generate-app

@jerryorta-dev
Copy link
Author

This appears to be an @angular/cli issue

@cristianmartinez
Copy link

cristianmartinez commented Aug 11, 2018

I got the same issue, even running the same command directly in the terminal.

ng generate application myapp

Could this be related to this comment? palantir/tslint#3525 (comment)

@cristianmartinez
Copy link

These steps worked for me:

delete package_locked.json and node_modules folder
npm install again.

@jsonberry
Copy link

Tangentially related to nrwl/nx#701

What are you all running for package manager?

If you cat ~/.angular-config.json what do you get?

{
  "version": 1,
  "cli": {
    "packageManager": "npm" // npm or yarn here?
  }
}

I'm seeing Cannot read property 'kind' of undefined popping up with projects that have yarn as the packageManager, but not npm.

@jerryorta-dev
Copy link
Author

@cristianmartinez I use yarn. Confirmed deleting node_modules and reinstalling with npm works.

@jerryorta-dev jerryorta-dev changed the title Creating application using @nrwl/schematic generates error "Cannot read property 'kind' of undefined" Creating application using @nrwl/schematic generates error "Cannot read property 'kind' of undefined" when using yarn Aug 13, 2018
@jerryorta-dev
Copy link
Author

@jsonberry confirmed my packageManager is set to yarn:

running cat ~/.angular-config.json yields

{
  "version": 1,
  "cli": {
    "packageManager": "yarn"
  }
}

@Buttars
Copy link

Buttars commented Aug 15, 2018

Looks like a possible typescript / tslint issue palantir/tslint#3689

@Yonet Yonet added the type: bug Something isn't working label Aug 21, 2018
@Yonet
Copy link
Contributor

Yonet commented Aug 21, 2018

Fixed: https://github.com/nrwl/angular-console/pull/176

@Yonet Yonet closed this as completed Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants