После установки дизайна материала я не могу скомпилировать код angular из-за ng cc. Я прикрепил свою трассировку ошибок вниз - PullRequest
0 голосов
/ 24 марта 2020
Compiling @ng-bootstrap/ng-bootstrap : module as esm5
Error: Error on worker #1: Error: Failed to compile entry-point @ng-bootstrap/ng-bootstrap (module as esm5) due to compilation errors:
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.js:148:43 - error NG1006: Cannot combine @Input decorators with query decorators

148         "starTemplate": [{ type: Input }, { type: ContentChild, args: [TemplateRef,] },],
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:12:51 - error NG6001: The class 'NgbRating' is listed in the declarations of the
NgModule 'NgbRatingModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

12         { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] },
                                                     ~~~~~~~~~

  node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.js:14:5
    14 var NgbRating = /** @class */ (function () {
           ~~~~~~~~~
    'NgbRating' is declared here.
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.js:14:5 - error NG6003: Appears in the NgModule.exports of NgbRatingModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Отсутствует аннотация Angular?

14 var NgbRating = /** @class */ (function () {
       ~~~~~~~~~
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7:5 - error NG6002: Appears in the NgModule.imports of NgbRootModule, but itself
has errors

7 var NgbRatingModule = /** @class */ (function () {
      ~~~~~~~~~~~~~~~
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7:5 - error NG6003: Appears in the NgModule.exports of NgbRootModule, but itself
has errors

7 var NgbRatingModule = /** @class */ (function () {
      ~~~~~~~~~~~~~~~
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7:5 - error NG6002: Appears in the NgModule.imports of NgbModule, but itself has
errors

7 var NgbRatingModule = /** @class */ (function () {
      ~~~~~~~~~~~~~~~
node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7:5 - error NG6003: Appears in the NgModule.exports of NgbModule, but itself has
errors

7 var NgbRatingModule = /** @class */ (function () {
      ~~~~~~~~~~~~~~~

    at ClusterWorker.compile (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\main.js:178:27)
    at Worker.<anonymous> (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\worker.js:44:42)
    at Worker.emit (events.js:182:13)
    at process.Worker.process.on (internal/cluster/worker.js:28:12)
    at process.emit (events.js:182:13)
    at emit (internal/child_process.js:812:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at ClusterMaster.onWorkerMessage (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:165:27)
    at C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:49:95
    at ClusterMaster.<anonymous> (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:245:57)
    at step (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\tslib\tslib.js:139:27)
    at Object.next (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\tslib\tslib.js:120:57)
    at C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\tslib\tslib.js:113:75
    at new Promise (<anonymous>)
    at Object.__awaiter (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\tslib\tslib.js:109:16)
    at EventEmitter.<anonymous> (C:\Users\adduru.yeswanth\Tool Front End\tools\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:239:32)
    at EventEmitter.emit (events.js:182:13)
An unhandled exception occurred: NGCC failed.
See "C:\Users\ADDURU~1.YES\AppData\Local\Temp\ng-RAy48O\angular-errors.log" for further details.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...