i have no idead where to even start. These errors are way to overwhelming and i don’t know where to look in my code to fix. It just started happening. ionic serve runs fine but when I try to build using ionic build --prod I get all of these errors. Does anyone even know how I can start troubleshooting this. I don’t even know how to explain to you what my code is like, I have written a very huge app and i don’t know where it all went wrong. the builds were working about 2 weeks ago. i haven’t done much editing until today. i have to get this fix as this program is our companies livelihood. Thanks in advanced. i can’t even list all the errors becuase this forum only allow so many character
ERROR in src/app/courses/vho/assignments/assignments.page.ts:25:1 - error TS-991006: Two incompatible decorators on class
25 @Component({
~~~~~~~~~~~~
26 selector: "app-assignments",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
533
534 }
~
__ng_typecheck__.ts:3304:5 - error TS2322: Type 'SafeResourceUrl' is not assignable to type 'string'.
3304 _t14.src = ctx.url;
~~~~~~~~
__ng_typecheck__.ts:6819:37 - error TS2322: Type '{}' is not assignable to type 'NgIterable<any>'.
Property '[Symbol.iterator]' is missing in type '{}' but required in type 'Iterable<any>'.
6819 var _t65 = _ctor9({ ngForOf: ctx.ions.ions.Cations });
~~~~~~~
node_modules/typescript/lib/lib.es2015.iterable.d.ts:43:5
43 [Symbol.iterator](): Iterator<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'[Symbol.iterator]' is declared here.
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:6827:43 - error TS2339: Property 'name' does not exist on type '{}'.
6827 _t70.innerHTML = _t67.name + " (" + _t67.symbol + ")";
~~~~
__ng_typecheck__.ts:6827:62 - error TS2339: Property 'symbol' does not exist on type '{}'.
6827 _t70.innerHTML = _t67.name + " (" + _t67.symbol + ")";
~~~~~~
__ng_typecheck__.ts:6828:52 - error TS2339: Property 'wiki' does not exist on type '{}'.
6828 var _t72 = _ctor6({ ngIf: _t67.wiki != "" });
~~~~
__ng_typecheck__.ts:6830:30 - error TS2339: Property 'wiki' does not exist on type '{}'.
6830 if (_t67.wiki != "") {
~~~~
__ng_typecheck__.ts:6840:37 - error TS2322: Type '{}' is not assignable to type 'NgIterable<any>'.
Property '[Symbol.iterator]' is missing in type '{}' but required in type 'Iterable<any>'.
6840 var _t79 = _ctor9({ ngForOf: ctx.ions.ions.Anions });
~~~~~~~
node_modules/typescript/lib/lib.es2015.iterable.d.ts:43:5
43 [Symbol.iterator](): Iterator<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'[Symbol.iterator]' is declared here.
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:6848:43 - error TS2339: Property 'name' does not exist on type '{}'.
6848 _t84.innerHTML = _t81.name + " (" + _t81.symbol + ")";
~~~~
__ng_typecheck__.ts:6848:62 - error TS2339: Property 'symbol' does not exist on type '{}'.
6848 _t84.innerHTML = _t81.name + " (" + _t81.symbol + ")";
~~~~~~
__ng_typecheck__.ts:6849:52 - error TS2339: Property 'wiki' does not exist on type '{}'.
6849 var _t86 = _ctor6({ ngIf: _t81.wiki != "" });
~~~~
__ng_typecheck__.ts:6851:30 - error TS2339: Property 'wiki' does not exist on type '{}'.
6851 if (_t81.wiki != "") {
~~~~
__ng_typecheck__.ts:7098:5 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7098 _t17.innerHTML = ctx.sanitizer.fixSafe(ctx.term, "html");
~~~~~~~~~~~~~~
__ng_typecheck__.ts:7107:5 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7107 _t25.innerHTML = ctx.sanitizer.fixSafe(ctx.general, "html");
~~~~~~~~~~~~~~
__ng_typecheck__.ts:7207:9 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7207 _t99.innerHTML = ctx.sanitizer.fixSafe(ctx.ROWT, "html");
~~~~~~~~~~~~~~
__ng_typecheck__.ts:72560m:9 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7256 _t135.innerHTML = ctx.sanitizer.fixSafe(ctx.MFWT, "html");
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:7305:9 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7305 _t171.innerHTML = ctx.sanitizer.fixSafe(ctx.HPWT, "html");
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:7481:13 - error TS2322: Type 'SafeResourceUrl | SafeHtml | SafeStyle | SafeScript | SafeUrl' is not assignable to type 'string'.
Type 'SafeResourceUrl' is not assignable to type 'string'.
7481 _t111.innerHTML = ctx.sanitizer.fixSafe(_t105.term, "html");
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:7966:9 - error TS2322: Type 'SafeHtml' is not assignable to type 'string'.
7966 _t103.innerHTML = ctx.getContent(_t58.details);
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:8145:9 - error TS2322: Type 'SafeHtml' is not assignable to type 'string'.
8145 _t100.innerHTML = ctx.getContent(_t49.details);
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:8250:9 - error TS2322: Type 'SafeResourceUrl' is not assignable to type 'string'.
8250 _t45.src = ctx.youTube;
~~~~~~~~
__ng_typecheck__.ts:9646:17 - error TS2322: Type '"muted"' is not assignable to type 'boolean'.
9646 _t55.muted = "muted";
~~~~~~~~~~
__ng_typecheck__.ts:10056:17 - error TS2322: Type 'SafeHtml' is not assignable to type 'string'.
10056 _t115.innerHTML = ctx.getContent(_t69.details);
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:10259:13 - error TS2322: Type 'SafeHtml' is not assignable to type 'string'.
10259 _t109.innerHTML = ctx.getContent(_t58.details);
~~~~~~~~~~~~~~~
__ng_typecheck__.ts:12355:29 - error TS2322: Type '{ name: string; message: any[]; new: boolean; from: string; date: string; }[] | { name: string; message: string; new: boolean; from: string; date: string; }[]' is not assignable to type 'NgIterable<{ name: string; message: any[]; new: boolean; from: string; date: string; }>'.
Type '{ name: string; message: string; new: boolean; from: string; date: string; }[]' is not assignable to type 'NgIterable<{ name: string; message: any[]; new: boolean; from: string; date: string; }>'.
Type '{ name: string; message: string; new: boolean; from: string; date: string; }[]' is not assignable to type '{ name: string; message: any[]; new: boolean; from: string; date: string; }[]'.
Type '{ name: string; message: string; new: boolean; from: string; date: string; }' is not assignable to type '{ name: string; message: any[]; new: boolean; from: string; date: string; }'.
Types of property 'message' are incompatible.
Type 'string' is not assignable to type 'any[]'.
12355 var _t65 = _ctor9({ ngForOf: _t52.messages });
~~~~~~~
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
m ~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<{ name: string; message: any[]; new: boolean; from: string; date: string; }>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:12360:44 - error TS2339: Property 'read' does not exist on type '{}'.
12360 var _t69 = _ctor6({ ngIf: _t67.read == 0 });
~~~~
__ng_typecheck__.ts:12362:22 - error TS2339: Property 'read' does not exist on type '{}'.
12362 if (_t67.read == 0) {
~~~~
__ng_typecheck__.ts:12369:27 - error TS2339: Property 'actualdate' does not exist on type '{}'.
12369 "" + _t67.actualdate;
~~~~~~~~~~
__ng_typecheck__.ts:12371:27 - error TS2339: Property 'subject' does not exist on type '{}'.
12371 "" + _t67.subject;
~~~~~~~
__ng_typecheck__.ts:12378:52 - error TS2339: Property 'type' does not exist on type '{}'.
12378 var _t83 = _ctor6({ ngIf: _t67.type == "Received" });
~~~~
__ng_typecheck__.ts:12380:30 - error TS2339: Property 'type' does not exist on type '{}'.
12380 if (_t67.type == "Received") {
~~~~
__ng_typecheck__.ts:12382:49 - error TS2339: Property 'senderid' does not exist on type '{}'.
12382 "" + ctx.getSender(_t67.senderid);
~~~~~~~~
__ng_typecheck__.ts:12384:52 - error TS2339: Property 'type' does not exist on type '{}'.
12384 var _t86 = _ctor6({ ngIf: _t67.type == "Sent" });
~~~~
__ng_typecheck__.ts:12386:30 - error TS2339: Property 'type' does not exist on type '{}'.
12386 if (_t67.type == "Sent") {
~~~~
__ng_typecheck__.ts:12388:49 - error TS2339: Property 'receiverid' does not exist on type '{}'.
12388 "" + ctx.getSender(_t67.receiverid);
~~~~~~~~~~
__ng_typecheck__.ts:12395:48 - error TS2339: Property 'type' does not exist on type '{}'.
12395 var _t93 = _ctor6({ ngIf: _t67.type == "Sent" });
~~~~
__ng_typecheck__.ts:12397:26 - error TS2339: Property 'type' does not exist on type '{}'.
12397 if (_t67.type == "Sent") {
~~~~
__ng_typecheck__.ts:12401:48 - error TS2339: Property 'type' does not exist on type '{}'.
12401 var _t97 = _ctor6({ ngIf: _t67.type == "Received" });
~~~~
__ng_typecheck__.ts:12403:26 - error TS2339: Property 'type' does not exist on type '{}'.
12403 if (_t67.type == "Received") {
~~~~
__ng_typecheck__.ts:12408:45 - error TS2339: Property 'read' does not exist on type '{}'.
12408 var _t101 = _ctor6({ ngIf: _t67.read == 1 });
~~~~
__ng_typecheck__.ts:12410:22 - error TS2339: Property 'read' does not exist on type '{}'.
12410 if (_t67.read == 1) {
~~~~
__ng_typecheck__.ts:12417:27 - error TS2339: Property 'actualdate' does not exist on type '{}'.
12417 "" + _t67.actualdate;
~~~~~~~~~~
__ng_typecheck__.ts:12419:27 - error TS2339: Property 'subject' does not exist on type '{}'.
12419 "" + _t67.subject;
~~~~~~~
__ng_typecheck__.ts:12426:53 - error TS2339: Property 'type' does not exist on type '{}'.
12426 var _t115 = _ctor6({ ngIf: _t67.type == "Received" });
~~~~
__ng_typecheck__.ts:12428:30 - error TS2339: Property 'type' does not exist on type '{}'.
12428 if (_t67.type == "Received") {
~~~~
__ng_typecheck__.ts:12430:49 - error TS2339: Property 'senderid' does not exist on type '{}'.
12430 "" + ctx.getSender(_t67.senderid);
~~~~~~~~
__ng_typecheck__.ts:12432:53 - error TS2339: Property 'type' does not exist on type '{}'.
12432 var _t118 = _ctor6({ ngIf: _t67.type == "Sent" });
~~~~
__ng_typecheck__.ts:12434:30 - error TS2339: Property 'type' does not exist on type '{}'.
12434 if (_t67.type == "Sent") {
~~~~
__ng_typecheck__.ts:12436:49 - error TS2339: Property 'receiverid' does not exist on type '{}'.
12436 "" + ctx.getSender(_t67.receiverid);
~~~~~~~~~~
__ng_typecheck__.ts:12443:49 - error TS2339: Property 'type' does not exist on type '{}'.
12443 var _t125 = _ctor6({ ngIf: _t67.type == "Sent" });
~~~~
__ng_typecheck__.ts:12445:26 - error TS2339: Property 'type' does not exist on type '{}'.
12445 if (_t67.type == "Sent") {
~~~~
__ng_typecheck__.ts:12449:49 - error TS2339: Property 'type' does not exist on type '{}'.
12449 var _t129 = _ctor6({ ngIf: _t67.type == "Received" });
~~~~
__ng_typecheck__.ts:12451:26 - error TS2339: Property 'type' does not exist on type '{}'.
12451 if (_t67.type == "Received") {
~~~~
__ng_typecheck__.ts:12461:68 - error TS2339: Property 'recordid' does not exist on type '{}'.
12461 var _t137 = _ctor6({ ngIf: _t135.replytoid == _t67.recordid && _t135.read == 0 });
~~~~~~~~
__ng_typecheck__.ts:12463:45 - error TS2339: Property 'recordid' does not exist on type '{}'.
12463 if (_t135.replytoid == _t67.recordid && _t135.read == 0) {
~~~~~~~~
__ng_typecheck__.ts:12509:68 - error TS2339: Property 'recordid' does not exist on type '{}'.
12509 var _t169 = _ctor6({ ngIf: _t135.replytoid == _t67.recordid && _t135.read == 1 });
~~~~~~~~
__ng_typecheck__.ts:12511:45 - error TS2339: Property 'recordid' does not exist on type '{}'.
12511 if (_t135.replytoid == _t67.recordid && _t135.read == 1) {
~~~~~~~~
__ng_typecheck__.ts:14163:29 - error TS2322: Type '{ length: number; }' is not assignable to type 'NgIterable<any>'.
Type '{ length: number; }' is missing the following properties from type 'any[]': pop, push, concat, join, and 25 more.
14163 var _t58 = _ctor9({ ngForOf: ctx.corpAccounts.currentAccount.employees });
~~~~~~~
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:14171:44 - errorm TS2339: Property 'mine' does not exist on type '{}'.
14171 var _t65 = _ctor6({ ngIf: _t60.mine && ctx.corpAccounts.currentAccount.adminType == "supervisor" });
~~~~
__ng_typecheck__.ts:14173:22 - error TS2339: Property 'mine' does not exist on type '{}'.
14173 if (_t60.mine && ctx.corpAccounts.currentAccount.adminType == "supervisor") {
~~~~
__ng_typecheck__.ts:14177:23 - error TS2339: Property 'f_name' does not exist on type '{}'.
14177 "" + _t60.f_name + _t60.l_name + _t60.min;
~~~~~~
__ng_typecheck__.ts:14177:37 - error TS2339: Property 'l_name' does not exist on type '{}'.
14177 "" + _t60.f_name + _t60.l_name + _t60.min;
~~~~~~
__ng_typecheck__.ts:14177:51 - error TS2339: Property 'min' does not exist on type '{}'.
14177 "" + _t60.f_name + _t60.l_name + _t60.min;
~~~
__ng_typecheck__.ts:14650:29 - error TS2322: Type '{ length: number; }' is not assignable to type 'NgIterable<any>'.
Type '{ length: number; }' is not assignable to type 'any[]'.
14650 var _t24 = _ctor9({ ngForOf: ctx.corpAccounts.currentAccount.employees });
~~~~~~~
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:14655:44 - error TS2339: Property 'userid' does not exist on type '{}'.
14655 var _t28 = _ctor6({ ngIf: _t26.userid != ctx.corpAccounts.currentEmployee.userid });
~~~~~~
__ng_typecheck__.ts:14657:22 - error TS2339: Property 'userid' does not exist on type '{}'.
14657 if (_t26.userid != ctx.corpAccounts.currentEmployee.userid) {
~~~~~~
__ng_typecheck__.ts:14662:27 - error TS2339: Property 'f_name' does not exist on type '{}'.
14662 "" + _t26.f_name + _t26.l_name;
~~~~~~
__ng_typecheck__.ts:14662:41 - error TS2339: Property 'l_name' does not exist on type '{}'.
14662 "" + _t26.f_name + _t26.l_name;
~~~~~~
__ng_typecheck__.ts:14664:79 - error TS2339: Property 'userid' does not exist on type '{}'.
14664 var _t35 = _ctor33({ checked: ctx.corpAccounts.isEmpMine(_t26.userid) });
~~~~~~
__ng_typecheck__.ts:14712:29 - error TS2322: Type '{ courseid: string; coursename: string; }' is not assignable to type 'NgIterable<any>'.
Property '[Symbol.iterator]' is missing in type '{ courseid: string; coursename: string; }' but required in type 'Iterable<any>'.
14712 var _t35 = _ctor9({ ngForOf: ctx.corpAccounts.courses.thecourses });
~~~~~~~
node_modules/typescript/lib/lib.es2015.iterable.d.ts:43:5
43 [Symbol.iterator](): Iterator<T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'[Symbol.iterator]' is declared here.
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:14720:23 - error TS2339: Property 'courseid' does not exist on type '{}'.
14720 "" + _t37.courseid + _t37.coursename;
~~~~~~~~
__ng_typecheck__.ts:14720:39 - error TS2339: Property 'coursename' does not exist on type '{}'.
14720 "" + _t37.courseid + _t37.coursename;
~~~~~~~~~~
__ng_typecheck__.ts:14722:64 - error TS2339: Property 'courseid' does not exist on type '{}'.
14722 var _t43 = _ctor6({ ngIf: ctx.checkIfEnrolled(_t37.courseid) == true });
~~~~~~~~
__ng_typecheck__.ts:14724:42 - error TS2339: Property 'courseid' does not exist on type '{}'.
14724 if (ctx.checkIfEnrolled(_t37.courseid) == true) {
~~~~~~~~
__ng_typecheck__.ts:14728:64 - error TS2339: Property 'courseid' does not exist on type '{}'.
14728 var _t47 = _ctor6({ ngIf: ctx.checkIfEnrolled(_t37.courseid) == false });
~~~~~~~~
__ng_typecheck__.ts:14730:42 - error TS2339: Property 'courseid' does not exist on type '{}'.
14730 if (ctx.checkIfEnrolled(_t37.courseid) == false) {
~~~~~~~~
__ng_typecheck__.ts:14733:50 - error TS2339: Property 'price' does not exist on type '{}'.
14733 "" + ctx.getDiscountedprice(_t37.price);
~~~~~
__ng_typecheck__.ts:14865:9 - error TS2322: Type 'SafeUrl' is not assignable to type 'string'.
14865 _t101.src = ctx.reportURL;
~~~~~~~~~
__ng_typecheck__.ts:15004:29 - error TS2322: Type '{ length: number; }' is not assignable to type 'NgIterable<any>'.
Type '{ length: number; }' is not assignable to type 'any[]'.
15004 var _t82 = _ctor9({ ngForOf: ctx.corpAccounts.currentAccount.employees });
~~~~~~~
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:15013:23 - error TS2339: Property 'f_name' does not exist on type '{}'.
15013 "" + _t84.f_name + _t84.l_name;
~~~~~~
__ng_typecheck__.ts:15013:37 - error TS2339: Property 'l_name' does not exist on type '{}'.
15013 "" + _t84.f_name + _t84.l_name;
~~~~~~
__ng_typecheck__.ts:15015:48 - error TS2339: Property 'canusecredit' does not exist on type '{}'.
15015 var _t91 = _ctor33({ checked: _t84.canusecredit });
~~~~~~~~~~~~
__ng_typecheck__.ts:15028:30 - error TS2322: Type '{ courseid: string; coursename: string; }' is not assignable to type 'NgIterable<any>'.
Type '{ courseid: string; coursename: string; }' is not assignable to type 'Iterable<any>'.
15028 var _t101 = _ctor9({ ngForOf: ctx.corpAccounts.courses.thecourses });
~~~~~~~
node_modules/@angular/common/common.d.ts:1653:5
1653 ngForOf: NgIterable<T>;
~~~~~~~
The expected type comes from property 'ngForOf' which is declared here on type 'Partial<Pick<NgForOf<any>, "ngForOf" | "ngForTrackBy" | "ngForTemplate">>'
__ng_typecheck__.ts:15037:24 - error TS2339: Property 'courseid' does not exist on type '{}'.
15037 "" + _t103.courseid + _t103.coursename;
~~~~~~~~
__ng_typecheck__.ts:15037:41 - error TS2339: Property 'coursename' does not exist on type '{}'.
15037 "" + _t103.courseid + _t103.coursename;
~~~~~~~~~~
__ng_typecheck__.ts:15039:84 - error TS2339: Property 'courseid' does not exist on type '{}'.
15039 var _t110 = _ctor33({ checked: ctx.checkIfCourseIsUsedWithCredit(_t103.courseid) });
~~~~~~~~
__ng_typecheck__.ts:15052:30 - error TS2322: Type '{ length: number; }' is not assignable to type 'NgIterable<any>'.
Type '{ length: number; }' is not assignable to type 'any[]'.
15052 var _t120 = _ctor9({ ngForOf: ctx.corpAccounts.currentAccount.employees });
~~~~~~~