I have installed below software in my System
I want to create component using angular cli inside angular template in VS 2017
Below are the step I am doing but fail to achive the results
Step 8)and using the given command ng g component myformname [M:\VS2017 Projects\Trail109\Trail109\ClientApp\app\components>ng g component myformname] but the above line gives me below given error
Error: Path "ClientApp/" is invalid. Path "ClientApp/" is invalid.
Please help What is that I am missing....
VS 2017 angular template has pre rendering enabled by default. If you haven't disabled that, please make sure after changing root to Client app
Amend the .angular.cli : change as follows
"root": "ClientApp",
"outDir": "ClientApp/dist",
Amend the ClientApp folder as follows
Rename app.module.client.ts to app.client.module.ts Open app.client.module.ts: prepend the declaration with 3 dots “...” and wrap the declaration in brackets.
For example: [...sharedConfig.declarations, ]
Open boot-client.ts: update your import to use the new app.client.module reference. For example: import { AppModule } from './app/app.client.module';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With