angular-cli

VS 2019 no intellisense and validation after ng cli update to version 10

*爱你&永不变心* 提交于 2020-08-19 06:32:39
问题 I've updated my .NET core 3.1+Angular 9.1 to Angular 10.0.2, steps I used: update Vs TypeScript to 3.9.5 run ng update @angular/core @angular/cli After that VS 2019 v 16.6.3 shows no intellisense and validation,project runs without problems. If I open the project in VS Code all work fine I've found the problem is just after I run ng update @angular/cli reverting project to 9.1 all works fine thanks 回答1: I experienced the same issue after upgrading a project to Angular 10. It appears to be an

VS 2019 no intellisense and validation after ng cli update to version 10

牧云@^-^@ 提交于 2020-08-19 06:31:23
问题 I've updated my .NET core 3.1+Angular 9.1 to Angular 10.0.2, steps I used: update Vs TypeScript to 3.9.5 run ng update @angular/core @angular/cli After that VS 2019 v 16.6.3 shows no intellisense and validation,project runs without problems. If I open the project in VS Code all work fine I've found the problem is just after I run ng update @angular/cli reverting project to 9.1 all works fine thanks 回答1: I experienced the same issue after upgrading a project to Angular 10. It appears to be an

Angular 9 - Istanbul test coverage report being generated empty

醉酒当歌 提交于 2020-08-05 15:23:46
问题 I'm getting an empty report, it's listing the files but it's not filling up the percentages... Any idea on what can be causing it? Error message: Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent. My package.json file: "dependencies": { "@angular/animations": "^9.0.4", "@angular/cdk": "^9.1.0", "@angular/common": "^9.0.4", "@angular/compiler": "^9.0.4", "@angular/core": "^9.0.4", "@angular/forms": "^9.0.4", "@angular

Angular 9 - Istanbul test coverage report being generated empty

一个人想着一个人 提交于 2020-08-05 15:23:34
问题 I'm getting an empty report, it's listing the files but it's not filling up the percentages... Any idea on what can be causing it? Error message: Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent. My package.json file: "dependencies": { "@angular/animations": "^9.0.4", "@angular/cdk": "^9.1.0", "@angular/common": "^9.0.4", "@angular/compiler": "^9.0.4", "@angular/core": "^9.0.4", "@angular/forms": "^9.0.4", "@angular

@angular-cli install fails with deprecated request@2.88.2: request has been deprecated (mac)

时间秒杀一切 提交于 2020-08-04 04:32:28
问题 After updating node.js and npm to current LTS: node -v v12.16.0 npm -v 6.13.4 When I'm trying to install @angular-cli following the steps in the documentation, running npm install -g @angular/cli in the terminal stops the installation and the console output is: npm install -g @angular/cli npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 /Users/user/.npm-global/bin/ng -> /USERS/USER/.npm-global/lib/node_modules/@angular/cli/bin

@angular-cli install fails with deprecated request@2.88.2: request has been deprecated (mac)

筅森魡賤 提交于 2020-08-04 04:31:20
问题 After updating node.js and npm to current LTS: node -v v12.16.0 npm -v 6.13.4 When I'm trying to install @angular-cli following the steps in the documentation, running npm install -g @angular/cli in the terminal stops the installation and the console output is: npm install -g @angular/cli npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 /Users/user/.npm-global/bin/ng -> /USERS/USER/.npm-global/lib/node_modules/@angular/cli/bin

ng build --base-href=“/…/” --deploy-url=“/…/” css background image not working

跟風遠走 提交于 2020-08-03 06:39:09
问题 "@angular/core": "~8.0.0", scaffold angular 8 project with scss style option i have code for as mentioned below in component scss file background: url("/assets/images/vector-icon.png") no-repeat 25%; at the final buil using command ng build --prod --base-href="/website/" --deploy-url="/website/" put build at sub folder root/webside everything working fine except background image path i have tried by ip/website/assets/images/vector-icon.png at that point i am able to get image. What if i don't

Angular Build Process to hash the File Name of Asset and Resource Folders

回眸只為那壹抹淺笑 提交于 2020-08-01 05:54:07
问题 I have an Angular 4.4.6 application and I build this using Angular CLI 1.0.1 . The problem I have is, apart from "inline.bundle.js", "main.bundle", "polyfills.bundle.js", "styles.bundle.js", "vendor.bundle.js" files names, all other File Names in " assets " and " resources " folder are NOT hashed when I build the application. Since the file name is not hashed the request URLs for these files remain same and hence the browsers takes these files from cache it self and new changes are not

How to check the Angular version?

瘦欲@ 提交于 2020-07-28 05:26:30
问题 I installed @angular/cli package via npm, using this command: npm install -g @angular/cli The version 1.4.2 of @angular/cli has been successfully installed. But that is not the Angular version, but the CLI version. After running ng new myapp how can I check which Angular version the created app is? 2.x, 4.x? 回答1: ng version You installed angular cli globally (-g in the command). This means that you can type ng version into your command prompt. It may be more precise to do this when your

How to check the Angular version?

限于喜欢 提交于 2020-07-28 05:24:36
问题 I installed @angular/cli package via npm, using this command: npm install -g @angular/cli The version 1.4.2 of @angular/cli has been successfully installed. But that is not the Angular version, but the CLI version. After running ng new myapp how can I check which Angular version the created app is? 2.x, 4.x? 回答1: ng version You installed angular cli globally (-g in the command). This means that you can type ng version into your command prompt. It may be more precise to do this when your