Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ionic audit --force created a big problem | ionic serve now generate so many errors

$
0
0
I just run ionic audit --force and this makes blunder.

On running ionic serve there are so many errors now:- 

[ng] ****************************************************************************************
[ng] This is a simple server for use in testing or debugging Angular applications locally.
[ng] It hasn't been reviewed for security issues.
[ng] DON'T USE IT FOR PRODUCTION!
[ng] ****************************************************************************************
[ng] - Generating browser application bundles (phase: setup)...
[ng] √ Browser application bundle generation complete.
[ng] Initial Chunk Files   | Names              |      Size
[ng] main.js               | main               | 569.08 kB
[ng] polyfills.js          | polyfills          | 192.24 kB
[ng] styles.css, styles.js | styles             | 173.52 kB
[ng] runtime.js            | runtime            |   2.95 kB
[ng] | Initial Total      | 937.79 kB
[ng] Lazy Chunk Files      | Names              |      Size
[ng] 2104.js               | -                  |  96.84 kB
[ng] 2214.js               | polyfills-core-js  |  91.58 kB
[ng] 497.js                | -                  |  59.52 kB
[ng] 966.js                | -                  |  47.58 kB
[ng] 5581.js               | -                  |  43.97 kB
[ng] 648.js                | -                  |  38.44 kB
[ng] 6503.js               | -                  |  38.23 kB
[ng] 4558.js               | -                  |  33.29 kB
[ng] 134.js                | -                  |  26.59 kB
[ng] 6726.js               | -                  |  23.52 kB
[ng] 8013.js               | -                  |  23.51 kB
[ng] 5643.js               | -                  |  23.15 kB
[ng] 5102.js               | -                  |  20.81 kB
[ng] 8592.js               | common             |  20.79 kB
[ng] 2756.js               | -                  |  20.73 kB
[ng] 7438.js               | -                  |  20.14 kB
[ng] 2099.js               | -                  |  20.03 kB
[ng] 2441.js               | -                  |  18.68 kB
[ng] 1988.js               | -                  |  18.53 kB
[ng] 1864.js               | -                  |  18.47 kB
[ng] 6748.js               | polyfills-dom      |  17.98 kB
[ng] 845.js                | -                  |  14.55 kB
[ng] 9238.js               | -                  |  13.43 kB
[ng] 7132.js               | -                  |  13.40 kB
[ng] 4468.js               | -                  |  12.96 kB
[ng] 7809.js               | -                  |  12.77 kB
[ng] 1229.js               | -                  |  12.63 kB
[ng] 8955.js               | -                  |  12.31 kB
[ng] 5798.js               | -                  |  11.27 kB
[ng] 9690.js               | -                  |  11.13 kB
[ng] 7355.js               | -                  |  10.85 kB
[ng] 202.js                | -                  |   9.82 kB
[ng] 2981.js               | -                  |   9.71 kB
[ng] 8082.js               | -                  |   9.52 kB
[ng] 1843.js               | polyfills-css-shim |   8.46 kB
[ng] 7701.js               | -                  |   8.22 kB
[ng] 2899.js               | -                  |   8.18 kB
[ng] 8377.js               | -                  |   7.83 kB
[ng] 172.js                | -                  |   7.25 kB
[ng] 1761.js               | -                  |   6.25 kB
[ng] 5269.js               | -                  |   5.78 kB
[ng] 4473.js               | -                  |   5.20 kB
[ng] 5737.js               | -                  |   5.12 kB
[ng] 5734.js               | -                  |   4.54 kB
[ng] 2369.js               | -                  |   4.29 kB
[ng] 8424.js               | -                  |   4.21 kB
[ng] 5670.js               | -                  |   3.57 kB
[ng] 608.js                | -                  |   3.55 kB
[ng] 8588.js               | -                  |   3.03 kB
[ng] 1571.js               | -                  |   1.90 kB
[ng] 9561.js               | -                  |   1.51 kB
[ng] 4054.js               | -                  |   1.41 kB
[ng] 3111.js               | -                  |   1.21 kB
[ng] 9712.js               | -                  | 752 bytes
[ng] 6776.js               | -                  | 603 bytes
[ng] 6731.js               | -                  | 557 bytes
[ng] 3965.js               | -                  | 555 bytes
[ng] 3536.js               | -                  | 435 bytes
[ng] 9605.js               | -                  | 381 bytes
[ng] 2556.js               | -                  | 159 bytes
[ng] 7640.js               | -                  | 157 bytes
[ng] Warning: 10 rules skipped due to selector errors:
[ng]   :host-context([dir=rtl]) .ion-float-start -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-end -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-sm-start -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-sm-end -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-md-start -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-md-end -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-lg-start -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-lg-end -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-xl-start -> unmatched pseudo-class :host-context
[ng]   :host-context([dir=rtl]) .ion-float-xl-end -> unmatched pseudo-class :host-context

[ng] Error: src/app/project/project.page.html:65:21 - error TS2339: Property 'ID' does not exist on type '[]'.
[ng] 65           {{project.ID}}
[ng]                        ~~~~~~~~~~~~~~~
[ng]   src/app/project/project.page.ts:13:16
[ng]     13   templateUrl: './project.page.html',
[ng]                       ~~~~~~~~~~~~~~~~~~~~~~~~~
[ng]     Error occurs in the template of component BidProjectPage.
[ng] Error: src/app/project/project.page.html:68:40 - error TS2339: Property 'Status' does not exist on type '[]'.
[ng] 68           <ng-container *ngIf="project.Status == '2'; else assigned;">
[ng]                                           ~~~~~~~~~~~~~~

[ng]     Error occurs in the template of component BidProjectPage.
[ng] Error: src/app/project/project.page.html:111:38 - error TS2339: Property 'Region' does not exist on type '[]'.
[ng] 111           Regione cliente: {{project.Region}}
[ng]                                          ~~~~~~~~~~~~~
[ng]   src/app/project/project.page.ts:13:16
[ng]     13   templateUrl: './project.page.html',
[ng]                       ~~~~~~~~~~~~~~~~~~~~~~~~~
[ng]     Error occurs in the template of component BidProjectPage.
[ng] Error: src/app/project/project.page.html:113:40 - error TS2339: Property 'ProjectCity' does not exist on type '[]'.
[ng] 113           Città del cliente: {{project.ProjectCity}}
[ng]                                            ~~~~~~~~~~~


[ng] Error: src/app/project/project.page.html:519:36 - error TS2554: Expected 1 arguments, but got 0.
[ng] 519               <ion-button (click)="assign_request()" color="success" class="text-white text-bold">Richiedi assegnazione
[ng]                                        ~~~~~~~~~~~~~~
[ng]   src/app/project/project.page.ts:13:16
[ng]     13   templateUrl: './project.page.html',
[ng]                       ~~~~~~~~~~~~~~~~~~~~~~~~~
[ng]     Error occurs in the template of component BidProjectPage.
**[ng] Error: src/app/work/work.module.ts:18:18 - error NG6001: The class 'Work' is listed in the declarations of the NgModule 'WorkModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.**
[ng] 18   declarations: [Work]
[ng]                     ~~~~~~~~~~~~
[ng]   src/app/work/work.page.ts:20:14
[ng]     20 export class Work implements OnInit {
[ng]                     ~~~~~~~~~~~~
[ng]     'Work' is declared here.
[ng] Error: src/app/work/work.page.ts:9:1 - error NG1006: Two incompatible decorators on class
[ng]   9 @Component({
[ng]     ~~~~~~~~~~~~
[ng]  10   selector: 'app-work',
[ng]     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ng] ...
[ng] 126   }
[ng]     ~~~
[ng] 127 }
[ng]     ~
[ng] Error: src/app/modal/rating/rating.page.html:63:58 - error TS2367: This condition will always return 'true' since the types 'number' and 'string' have no overlap.
[ng] 63             <ion-button [disabled]="!rateForm.valid || !(overAllRating != '0')" class="ion-text-capitalize"
[ng]                                                             ~~~~~~~~~~~~~~~~~~~~
[ng]   src/app/modal/rating/rating.page.ts:8:16
[ng]     8   templateUrl: './rating.page.html',
[ng]                      ~~~~~~~~~~~~~~~~~~~~
[ng]     Error occurs in the template of component RatingPage.
[ng] Error: src/app/Bids/Bids.module.ts:18:18 - error NG6001: The class 'BPage' is listed in the declarations of the NgModule 'BPageModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.
[ng] 18   declarations: [BPage]
[ng]                     ~~~~~~~~~~
[ng]   src/app/Bids/Bids.page.ts:17:14
[ng]     17 export class BPage implements OnInit {
[ng]                     ~~~~~~~~~~
[ng]     'BPage' is declared here.
[ng] Error: src/app/Bids/Bids.page.ts:6:1 - error NG1006: Two incompatible decorators on class
[ng]   6 @Component({
[ng]     ~~~~~~~~~~~~
[ng]   7   selector: 'app-Bids',
[ng]     ~~~~~~~~~~~~~~~~~~~~~~~~~~
[ng] ...
[ng] 113
[ng]
[ng] 114 }
[ng]     ~
[ng] Build at: 2021-06-15T13:56:04.306Z - Hash: 114488e0aed9839b21e7 - Time: 117293ms





Here my package json

{

  "name": "addlance",

  "version": "0.0.1",

  "author": "Ionic Framework",

  "homepage": "https://ionicframework.com/",

  "scripts": {

    "ng": "ng",

    "start": "ng serve",

    "build": "ng build",

    "test": "ng test",

    "lint": "ng lint",

    "e2e": "ng e2e"

  },

  "private": true,

  "dependencies": {

    "@angular/common": "^12.0.4",

    "@angular/core": "^12.0.4",

    "@angular/forms": "^12.0.4",

    "@angular/platform-browser": "^12.0.4",

    "@angular/platform-browser-dynamic": "^12.0.4",

    "@angular/router": "^12.0.4",

    "@capacitor/android": "^2.4.7",

    "@capacitor/core": "2.4.6",

    "@ionic/angular": "^5.6.9",

    "@ionic/storage": "^2.3.1",

    "cordova-plugin-file": "^6.0.2",

    "ionic-angular": "^3.9.10",

    "rxjs": "^6.6.7",

    "toolkit": "^1.5.4",

    "tslib": "^2.3.0",

    "zone.js": "~0.11.4"

  },

  "devDependencies": {

    "@angular-devkit/build-angular": "^12.0.4",

    "@angular/cli": "^12.0.4",

    "@angular/compiler": "^12.0.4",

    "@angular/compiler-cli": "^12.0.4",

    "@angular/language-service": "^12.0.4",

    "@capacitor/cli": "2.4.6",

    "@ionic/angular-toolkit": "^3.1.1",

    "@types/jasmine": "^3.7.7",

    "@types/jasminewd2": "^2.0.9",

    "@types/node": "^12.20.15",

    "codelyzer": "^6.0.2",

    "jasmine-core": "~3.6.0",

    "jasmine-spec-reporter": "~5.0.0",

    "karma": "^6.3.4",

    "karma-chrome-launcher": "~3.1.0",

    "karma-coverage": "~2.0.3",

    "karma-coverage-istanbul-reporter": "~3.0.2",

    "karma-jasmine": "~4.0.0",

    "karma-jasmine-html-reporter": "^1.6.0",

    "protractor": "~7.0.0",

    "ts-node": "~8.3.0",

    "tslint": "~6.1.0",

    "typescript": "~4.2.4"

  },

  "description": "An Ionic project"

}

I create a new project for testing purpose and this is working fine. This means problem is only in current project.

Please suggest me on this.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>