GithubHelp home page GithubHelp logo

fix-cli-build's People

Contributors

vsavkin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bryanrideshark

fix-cli-build's Issues

On Windows 8.1, ng generate does not work

To reproduce:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

D:\>mkdir test-nx

D:\>cd test-nx

D:\test-nx>ng new test --collection=@nrwl/schematics
Project name "test" is not a supported name.

D:\test-nx>ng new test-app --collection=@nrwl/schematics
  create test-app/apps/.gitkeep (1 bytes)
  create test-app/karma.conf.js (923 bytes)
  create test-app/libs/.gitkeep (0 bytes)
  create test-app/package.json (1621 bytes)
  create test-app/protractor.conf.js (721 bytes)
  create test-app/README.md (1860 bytes)
  create test-app/test.js (1227 bytes)
  create test-app/tsconfig.app.json (301 bytes)
  create test-app/tsconfig.e2e.json (372 bytes)
  create test-app/tsconfig.json (471 bytes)
  create test-app/tsconfig.spec.json (367 bytes)
  create test-app/tslint.json (2595 bytes)
  create test-app/.angular-cli.json (716 bytes)
  create test-app/.editorconfig (245 bytes)
  create test-app/.gitignore (516 bytes)
Installing packages for tooling via yarn.
Installed packages for tooling via yarn.
Successfully initialized git.
Project 'test-app' successfully created.

D:\test-nx>cd test-app

D:\test-nx\test-app>ng generate app app-1
  create apps/app-1/e2e/app.e2e-spec.ts (272 bytes)
  create apps/app-1/e2e/app.po.ts (201 bytes)
  create apps/app-1/src/assets/nx-logo.png (71592 bytes)
  create apps/app-1/src/assets/.gitkeep (0 bytes)
  create apps/app-1/src/environments/environment.prod.ts (51 bytes)
  create apps/app-1/src/environments/environment.ts (387 bytes)
  create apps/app-1/src/favicon.ico (5430 bytes)
  create apps/app-1/src/index.html (291 bytes)
  create apps/app-1/src/main.ts (370 bytes)
  create apps/app-1/src/polyfills.ts (2667 bytes)
  create apps/app-1/src/styles.css (80 bytes)
  create apps/app-1/src/app/app.module.ts (342 bytes)
  create apps/app-1/src/app/app.component.html (520 bytes)
  create apps/app-1/src/app/app.component.spec.ts (607 bytes)
  create apps/app-1/src/app/app.component.ts (318 bytes)
  create apps/app-1/src/app/app.component.css (0 bytes)
  update .angular-cli.json (1415 bytes)

D:\test-nx\test-app>ng g component test-component
Error: Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule.
Could not find an NgModule for the new component. Use the skip-import option to skip importing components in NgModule.

Notice that it's just the ng generate component / service / anything from @angular/cli which breaks.

This is resolved by #3

Output when using the fixed version:

D:\test-nx\test-app>ng g component test-component
  create apps/app-1/src/app/test-component/test-component.component.html (33 bytes)
  create apps/app-1/src/app/test-component/test-component.component.spec.ts (678 bytes)
  create apps/app-1/src/app/test-component/test-component.component.ts (300 bytes)
  create apps/app-1/src/app/test-component/test-component.component.css (0 bytes)
  update apps/app-1/src/app/app.module.ts (444 bytes)

upgrade to @angular/cli 1.6.0

Hello,
thanks for your work.
As @angular/[email protected] is out, could you update the dependency ?
Right now, the cli displays the following message :

Your global Angular CLI version (1.6.0) is greater than your local
version (1.5.0). The local Angular CLI version is used.

To disable this warning use "ng set --global warnings.versionMismatch=false".

I know this is perfectly normal, but I contracted the latest dependencies syndrome :-D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.