nrwl / fix-cli-build Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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)
The description for this issue is here, idk if it's because of this fork or an schematics issue: nrwl/nx#115
Thanks for your excellent work. Do you guys plan to switch to vanilla cli 1.5.x?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.