error 38 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740
npm run dev

> voting-dapp@1.0.0 dev
> cd frontend-angular && npm run dev


> voting-dapp-frontend-angular@0.1.0 dev
> ng serve

? Would you like to share pseudonymous usage data about this project with the Angular Team
at Google under Google's Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: enabled
Local setting: disabled
Effective status: disabled
Option "browserTarget" is deprecated: Use 'buildTarget' instead.
√ Browser application bundle generation complete.

Initial chunk files   | Names         |  Raw size
vendor.js             | vendor        |   3.22 MB |
polyfills.js          | polyfills     | 341.99 kB |
styles.css, styles.js | styles        | 230.93 kB |
main.js               | main          |  34.23 kB |
runtime.js            | runtime       |   7.02 kB |

                      | Initial total |   3.82 MB

Build at: 2025-03-19T18:08:14.980Z - Hash: 17fe02624019b6d2 - Time: 9720ms

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\bignumber\lib.esm\bignumber.js depends on 'bn.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\json-wallets\lib.esm\crowdsale.js depends on 'aes-js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\json-wallets\lib.esm\keystore.js depends on 'scrypt-js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\keccak256\lib.esm\index.js depends on 'js-sha3'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\providers\lib.esm\base-provider.js depends on 'bech32'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\node_modules\@ethersproject\sha2\lib.esm\sha2.js depends on 'hash.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies



./src/app/app.module.ts:8:0-94 - Error: Module not found: Error: Can't resolve './components/connect-wallet/connect-wallet.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:9:0-97 - Error: Module not found: Error: Can't resolve './components/workflow-status/workflow-status.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:10:0-100 - Error: Module not found: Error: Can't resolve './components/voter-management/voter-management.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:11:0-109 - Error: Module not found: Error: Can't resolve './components/proposal-management/proposal-management.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:12:0-94 - Error: Module not found: Error: Can't resolve './components/voting-session/voting-session.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

Error: src/app/app.component.html:2:3 - error NG8001: 'app-header' is not a known element:
1. If 'app-header' is an Angular component, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:2:15 - error NG8002: Can't bind to 'account' since it isn't a known property of 'app-header'.
1. If 'app-header' is an Angular component and it has 'account' input, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
                ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:2:35 - error NG8002: Can't bind to 'isOwner' since it isn't a known property of 'app-header'.
1. If 'app-header' is an Angular component and it has 'isOwner' input, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
                                    ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:24:13 - error NG8001: 'app-connect-wallet' is not a known element:
1. If 'app-connect-wallet' is an Angular component, then verify that it is part of this module.
2. If 'app-connect-wallet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

24             <app-connect-wallet></app-connect-wallet>
               ~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:31:11 - error NG8001: 'app-workflow-status' is not a known element:
1. If 'app-workflow-status' is an Angular component, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

31           <app-workflow-status
             ~~~~~~~~~~~~~~~~~~~~
32             [currentStatus]="currentStatus"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33             [isOwner]="isOwner">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:32:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-workflow-status'.
1. If 'app-workflow-status' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

32             [currentStatus]="currentStatus"
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:33:13 - error NG8002: Can't bind to 'isOwner' since it isn't a known property of 'app-workflow-status'.
1. If 'app-workflow-status' is an Angular component and it has 'isOwner' input, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

33             [isOwner]="isOwner">
               ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:37:11 - error NG8001: 'app-voter-management' is not a known element:
1. If 'app-voter-management' is an Angular component, then verify that it is part of this module.
2. If 'app-voter-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

37           <app-voter-management
             ~~~~~~~~~~~~~~~~~~~~~
38             *ngIf="isOwner && currentStatus === '0'"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:39:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-voter-management'.
1. If 'app-voter-management' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-voter-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

39             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:43:11 - error NG8001: 'app-proposal-management' is not a known element:
1. If 'app-proposal-management' is an Angular component, then verify that it is part of this module.
2. If 'app-proposal-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

43           <app-proposal-management
             ~~~~~~~~~~~~~~~~~~~~~~~~
44             *ngIf="isVoter && currentStatus === '1'"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:45:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-proposal-management'.
1. If 'app-proposal-management' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-proposal-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

45             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:49:11 - error NG8001: 'app-voting-session' is not a known element:
1. If 'app-voting-session' is an Angular component, then verify that it is part of this module.
2. If 'app-voting-session' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

49           <app-voting-session
             ~~~~~~~~~~~~~~~~~~~
50             *ngIf="isVoter && (currentStatus === '3' || currentStatus === '5')"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:51:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-voting-session'.
1. If 'app-voting-session' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-voting-session' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

51             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.module.ts:8:40 - error TS2307: Cannot find module './components/connect-wallet/connect-wallet.component' or its corresponding type declarations.

8 import { ConnectWalletComponent } from './components/connect-wallet/connect-wallet.component';
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:9:41 - error TS2307: Cannot find module './components/workflow-status/workflow-status.component' or its corresponding type declarations.

9 import { WorkflowStatusComponent } from './components/workflow-status/workflow-status.component';
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:10:42 - error TS2307: Cannot find module './components/voter-management/voter-management.component' or its corresponding type declarations.

10 import { VoterManagementComponent } from './components/voter-management/voter-management.component';
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:11:45 - error TS2307: Cannot find module './components/proposal-management/proposal-management.component' or its corresponding type declarations.

11 import { ProposalManagementComponent } from './components/proposal-management/proposal-management.component';
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:12:40 - error TS2307: Cannot find module './components/voting-session/voting-session.component' or its corresponding type declarations.

12 import { VotingSessionComponent } from './components/voting-session/voting-session.component';
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:15:17 - error NG1010: Value

Error: src/app/components/header/header.component.ts:5:16 - error NG2008: Could not find template file './header.component.html'.

5   templateUrl: './header.component.html',
                 ~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/components/header/header.component.ts:10:2 - error TS1005: '}' expected.

10



Error: src/app/services/contract.service.ts:116:41 - error TS4111: Property 'owner' comes from an index signature, so it must be accessed with ['owner'].

116       const owner = await this.contract.owner();
                                            ~~~~~


Error: src/app/services/contract.service.ts:122:42 - error TS4111: Property 'workflowStatus' comes from an index signature, so it must be accessed with ['workflowStatus'].

122       const status = await this.contract.workflowStatus();
                                             ~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:128:45 - error TS4111: Property 'getVoter' comes from an index signature, so it must be accessed with ['getVoter'].

128           const voter = await this.contract.getVoter(account);
                                                ~~~~~~~~


Error: src/app/services/contract.service.ts:195:38 - error TS4111: Property 'registerVoter' comes from an index signature, so it must be accessed with ['registerVoter'].

195       const tx = await this.contract.registerVoter(voterAddress);
                                         ~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:215:38 - error TS4111: Property 'startProposalsRegistration' comes from an index signature, so it must be accessed with ['startProposalsRegistration'].

215       const tx = await this.contract.startProposalsRegistration(durationInMinutes);
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:235:38 - error TS4111: Property 'endProposalsRegistration' comes from an index signature, so it must be accessed with ['endProposalsRegistration'].

235       const tx = await this.contract.endProposalsRegistration();
                                         ~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:255:38 - error TS4111: Property 'registerProposal' comes from an index signature, so it must be accessed with ['registerProposal'].

255       const tx = await this.contract.registerProposal(description);
                                         ~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:275:38 - error TS4111: Property 'startVotingSession' comes from an index signature, so it must be accessed with ['startVotingSession'].

275       const tx = await this.contract.startVotingSession(durationInMinutes);
                                         ~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:295:38 - error TS4111: Property 'endVotingSession' comes from an index signature, so it must be accessed with ['endVotingSession'].

295       const tx = await this.contract.endVotingSession();
                                         ~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:315:38 - error TS4111: Property 'vote' comes from an index signature, so it must be accessed with ['vote'].

315       const tx = await this.contract.vote(proposalId);
                                         ~~~~


Error: src/app/services/contract.service.ts:335:38 - error TS4111: Property 'delegateVoteTo' comes from an index signature, so it must be accessed with ['delegateVoteTo'].

335       const tx = await this.contract.delegateVoteTo(delegateAddress);
                                         ~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:355:38 - error TS4111: Property 'tallyVotes' comes from an index signature, so it must be accessed with ['tallyVotes'].

355       const tx = await this.contract.tallyVotes();
                                         ~~~~~~~~~~


Error: src/app/services/contract.service.ts:372:41 - error TS4111: Property 'getProposalsCount' comes from an index signature, so it must be accessed with ['getProposalsCount'].

372       const count = await this.contract.getProposalsCount();
                                            ~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:376:46 - error TS4111: Property 'getProposal' comes from an index signature, so it must be accessed with ['getProposal'].

376         const proposal = await this.contract.getProposal(i);
                                                 ~~~~~~~~~~~


Error: src/app/services/contract.service.ts:398:41 - error TS4111: Property 'getVoter' comes from an index signature, so it must be accessed with ['getVoter'].

398       const voter = await this.contract.getVoter(address);
                                            ~~~~~~~~




** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


× Failed to compile.
√ Browser application bundle generation complete.

Initial chunk files | Names   | Raw size
runtime.js          | runtime |  7.02 kB |

4 unchanged chunks

Build at: 2025-03-19T18:08:15.433Z - Hash: 6e3d1fc786e76e1a - Time: 180ms

./src/app/app.module.ts:8:0-94 - Error: Module not found: Error: Can't resolve './components/connect-wallet/connect-wallet.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:9:0-97 - Error: Module not found: Error: Can't resolve './components/workflow-status/workflow-status.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:10:0-100 - Error: Module not found: Error: Can't resolve './components/voter-management/voter-management.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:11:0-109 - Error: Module not found: Error: Can't resolve './components/proposal-management/proposal-management.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

./src/app/app.module.ts:12:0-94 - Error: Module not found: Error: Can't resolve './components/voting-session/voting-session.component' in 'C:\Users\gdewisme\Alt-2024-1\school\CI\v3\ci\frontend-angular\src\app'

Error: src/app/app.component.html:2:3 - error NG8001: 'app-header' is not a known element:
1. If 'app-header' is an Angular component, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:2:15 - error NG8002: Can't bind to 'account' since it isn't a known property of 'app-header'.
1. If 'app-header' is an Angular component and it has 'account' input, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
                ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:2:35 - error NG8002: Can't bind to 'isOwner' since it isn't a known property of 'app-header'.
1. If 'app-header' is an Angular component and it has 'isOwner' input, then verify that it is part of this module.
2. If 'app-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

2   <app-header [account]="account" [isOwner]="isOwner"></app-header>
                                    ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:24:13 - error NG8001: 'app-connect-wallet' is not a known element:
1. If 'app-connect-wallet' is an Angular component, then verify that it is part of this module.
2. If 'app-connect-wallet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

24             <app-connect-wallet></app-connect-wallet>
               ~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:31:11 - error NG8001: 'app-workflow-status' is not a known element:
1. If 'app-workflow-status' is an Angular component, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

31           <app-workflow-status
             ~~~~~~~~~~~~~~~~~~~~
32             [currentStatus]="currentStatus"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33             [isOwner]="isOwner">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:32:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-workflow-status'.
1. If 'app-workflow-status' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

32             [currentStatus]="currentStatus"
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:33:13 - error NG8002: Can't bind to 'isOwner' since it isn't a known property of 'app-workflow-status'.
1. If 'app-workflow-status' is an Angular component and it has 'isOwner' input, then verify that it is part of this module.
2. If 'app-workflow-status' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

33             [isOwner]="isOwner">
               ~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:37:11 - error NG8001: 'app-voter-management' is not a known element:
1. If 'app-voter-management' is an Angular component, then verify that it is part of this module.
2. If 'app-voter-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

37           <app-voter-management
             ~~~~~~~~~~~~~~~~~~~~~
38             *ngIf="isOwner && currentStatus === '0'"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:39:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-voter-management'.
1. If 'app-voter-management' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-voter-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

39             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:43:11 - error NG8001: 'app-proposal-management' is not a known element:
1. If 'app-proposal-management' is an Angular component, then verify that it is part of this module.
2. If 'app-proposal-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

43           <app-proposal-management
             ~~~~~~~~~~~~~~~~~~~~~~~~
44             *ngIf="isVoter && currentStatus === '1'"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:45:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-proposal-management'.
1. If 'app-proposal-management' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-proposal-management' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

45             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:49:11 - error NG8001: 'app-voting-session' is not a known element:
1. If 'app-voting-session' is an Angular component, then verify that it is part of this module.
2. If 'app-voting-session' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

49           <app-voting-session
             ~~~~~~~~~~~~~~~~~~~
50             *ngIf="isVoter && (currentStatus === '3' || currentStatus === '5')"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51             [currentStatus]="currentStatus">
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:51:13 - error NG8002: Can't bind to 'currentStatus' since it isn't a known property of 'app-voting-session'.
1. If 'app-voting-session' is an Angular component and it has 'currentStatus' input, then verify that it is part of this module.
2. If 'app-voting-session' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

51             [currentStatus]="currentStatus">
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.module.ts:8:40 - error TS2307: Cannot find module './components/connect-wallet/connect-wallet.component' or its corresponding type declarations.

8 import { ConnectWalletComponent } from './components/connect-wallet/connect-wallet.component';
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:9:41 - error TS2307: Cannot find module './components/workflow-status/workflow-status.component' or its corresponding type declarations.

9 import { WorkflowStatusComponent } from './components/workflow-status/workflow-status.component';
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:10:42 - error TS2307: Cannot find module './components/voter-management/voter-management.component' or its corresponding type declarations.

10 import { VoterManagementComponent } from './components/voter-management/voter-management.component';
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:11:45 - error TS2307: Cannot find module './components/proposal-management/proposal-management.component' or its corresponding type declarations.

11 import { ProposalManagementComponent } from './components/proposal-management/proposal-management.component';
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:12:40 - error TS2307: Cannot find module './components/voting-session/voting-session.component' or its corresponding type declarations.

12 import { VotingSessionComponent } from './components/voting-session/voting-session.component';
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/app.module.ts:15:17 - error NG1010: Value

Error: src/app/components/header/header.component.ts:5:16 - error NG2008: Could not find template file './header.component.html'.

5   templateUrl: './header.component.html',
                 ~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/components/header/header.component.ts:10:2 - error TS1005: '}' expected.

10



Error: src/app/services/contract.service.ts:116:41 - error TS4111: Property 'owner' comes from an index signature, so it must be accessed with ['owner'].

116       const owner = await this.contract.owner();
                                            ~~~~~


Error: src/app/services/contract.service.ts:122:42 - error TS4111: Property 'workflowStatus' comes from an index signature, so it must be accessed with ['workflowStatus'].

122       const status = await this.contract.workflowStatus();
                                             ~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:128:45 - error TS4111: Property 'getVoter' comes from an index signature, so it must be accessed with ['getVoter'].

128           const voter = await this.contract.getVoter(account);
                                                ~~~~~~~~


Error: src/app/services/contract.service.ts:195:38 - error TS4111: Property 'registerVoter' comes from an index signature, so it must be accessed with ['registerVoter'].

195       const tx = await this.contract.registerVoter(voterAddress);
                                         ~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:215:38 - error TS4111: Property 'startProposalsRegistration' comes from an index signature, so it must be accessed with ['startProposalsRegistration'].

215       const tx = await this.contract.startProposalsRegistration(durationInMinutes);
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:235:38 - error TS4111: Property 'endProposalsRegistration' comes from an index signature, so it must be accessed with ['endProposalsRegistration'].

235       const tx = await this.contract.endProposalsRegistration();
                                         ~~~~~~~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:255:38 - error TS4111: Property 'registerProposal' comes from an index signature, so it must be accessed with ['registerProposal'].

255       const tx = await this.contract.registerProposal(description);
                                         ~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:275:38 - error TS4111: Property 'startVotingSession' comes from an index signature, so it must be accessed with ['startVotingSession'].

275       const tx = await this.contract.startVotingSession(durationInMinutes);
                                         ~~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:295:38 - error TS4111: Property 'endVotingSession' comes from an index signature, so it must be accessed with ['endVotingSession'].

295       const tx = await this.contract.endVotingSession();
                                         ~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:315:38 - error TS4111: Property 'vote' comes from an index signature, so it must be accessed with ['vote'].

315       const tx = await this.contract.vote(proposalId);
                                         ~~~~


Error: src/app/services/contract.service.ts:335:38 - error TS4111: Property 'delegateVoteTo' comes from an index signature, so it must be accessed with ['delegateVoteTo'].

335       const tx = await this.contract.delegateVoteTo(delegateAddress);
                                         ~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:355:38 - error TS4111: Property 'tallyVotes' comes from an index signature, so it must be accessed with ['tallyVotes'].

355       const tx = await this.contract.tallyVotes();
                                         ~~~~~~~~~~


Error: src/app/services/contract.service.ts:372:41 - error TS4111: Property 'getProposalsCount' comes from an index signature, so it must be accessed with ['getProposalsCount'].

372       const count = await this.contract.getProposalsCount();
                                            ~~~~~~~~~~~~~~~~~


Error: src/app/services/contract.service.ts:376:46 - error TS4111: Property 'getProposal' comes from an index signature, so it must be accessed with ['getProposal'].

376         const proposal = await this.contract.getProposal(i);
                                                 ~~~~~~~~~~~


Error: src/app/services/contract.service.ts:398:41 - error TS4111: Property 'getVoter' comes from an index signature, so it must be accessed with ['getVoter'].

398       const voter = await this.contract.getVoter(address);
                                            ~~~~~~~~




× Failed to compile.