Guest User

compilation error

a guest
Dec 10th, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   src/app/modules/landing/home/home.component.ts:5:20
  2.     5     templateUrl  : './home.component.html',
  3.                          ~~~~~~~~~~~~~~~~~~~~~~~
  4.     Error occurs in the template of component LandingHomeComponent.
  5.  
  6.  
  7. Error: src/app/modules/landing/home/home.component.html:23:17 - error NG8002: Can't bind to 'routerLink' since it isn't a known property of 'a'.
  8.  
  9. 23                 [routerLink]="'/dashboards/project'">
  10.                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11.  
  12.   src/app/modules/landing/home/home.component.ts:5:20
  13.     5     templateUrl  : './home.component.html',
  14.                          ~~~~~~~~~~~~~~~~~~~~~~~
  15.     Error occurs in the template of component LandingHomeComponent.
  16.  
  17.  
  18. Error: src/app/modules/landing/home/home.component.html:25:17 - error NG8001: 'mat-icon' is not a known element:
  19. 1. If 'mat-icon' is an Angular component, then verify that it is part of this module.
  20. 2. If 'mat-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  21.  
  22. 25                 <mat-icon
  23.                    ~~~~~~~~~
  24. 26                     class="ml-2 icon-size-5"
  25.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. 27                     [svgIcon]="'heroicons_solid:arrow-narrow-right'"></mat-icon>
  27.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  28.  
  29.   src/app/modules/landing/home/home.component.ts:5:20
  30.     5     templateUrl  : './home.component.html',
  31.                          ~~~~~~~~~~~~~~~~~~~~~~~
  32.     Error occurs in the template of component LandingHomeComponent.
  33.  
  34.  
  35. Error: src/app/modules/landing/home/home.component.html:27:21 - error NG8002: Can't bind to 'svgIcon' since it isn't a known property of 'mat-icon'.
  36. 1. If 'mat-icon' is an Angular component and it has 'svgIcon' input, then verify that it is part of this module.
  37. 2. If 'mat-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  38. 3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
  39.  
  40. 27                     [svgIcon]="'heroicons_solid:arrow-narrow-right'"></mat-icon>
  41.                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42.  
  43.   src/app/modules/landing/home/home.component.ts:5:20
  44.     5     templateUrl  : './home.component.html',
  45.                          ~~~~~~~~~~~~~~~~~~~~~~~
  46.     Error occurs in the template of component LandingHomeComponent.
  47.  
  48.  
  49. Error: src/app/modules/landing/home/home.module.ts:2:30 - error TS2307: Cannot find module '@angular/router' or its corresponding type declarations.
  50.  
  51. 2 import { RouterModule } from '@angular/router';
  52.                                ~~~~~~~~~~~~~~~~~
  53.  
  54.  
  55. Error: src/app/modules/landing/home/home.module.ts:13:19 - error NG1010: Value at position 0 in the NgModule.imports of LandingHomeModule is not a reference
  56.   Value could not be determined statically.
  57.  
  58.  13     imports     : [
  59.                       ~
  60.  14         RouterModule.forChild(landingHomeRoutes),
  61.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. ...
  63.  17         SharedModule
  64.     ~~~~~~~~~~~~~~~~~~~~
  65.  18     ]
  66.     ~~~~~
  67.  
  68.   src/app/modules/landing/home/home.module.ts:14:9
  69.     14         RouterModule.forChild(landingHomeRoutes),
  70.                ~~~~~~~~~~~~~~~~~~~~~
  71.     Unable to evaluate this expression statically.
  72.   src/app/modules/landing/home/home.module.ts:14:9
  73.     14         RouterModule.forChild(landingHomeRoutes),
  74.                ~~~~~~~~~~~~
  75.     Unknown reference.
  76.  
  77.  
  78. Error: src/app/modules/landing/home/home.routing.ts:1:23 - error TS2307: Cannot find module '@angular/router' or its corresponding type declarations.
  79.  
  80. 1 import { Route } from '@angular/router';
  81.                         ~~~~~~~~~~~~~~~~~
  82.  
  83.  
  84. Error: src/main.ts:1:40 - error TS2307: Cannot find module '@angular/platform-browser-dynamic' or its corresponding type declarations.
  85.  
  86. 1 import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  87.                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88.  
  89.  
  90.  
  91.  
  92. ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
  93.  
  94.  
  95. ✖ Failed to compile.
Advertisement
Add Comment
Please, Sign In to add comment