question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v10 breaks Angular build

See original GitHub issue

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

After ugrading to ng-packagr v10 the build process of a project using several Angular library packages (compiled with v10) stopped working.

I’m aware that esm5 and fesm5 formats are no longer generated as of v10-next.0, however since it doesn’t mention that this will break all builds using a package that was compiled with ng-packagr, I expect it to work though.

Since this is not a direct problem of ng-packagr, rather a problem with Angular using it, I can imagin this is the wrong place to track this issue. If so, please point me to the correct repository.

Full log:

> ng build --configuration=integration && node build/post-build.js

Compiling @angular/core : es2015 as esm2015
Compiling @angular/animations : es2015 as esm2015
Compiling @angular/compiler/testing : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
Compiling @angular/animations/browser : es2015 as esm2015
Compiling apollo-angular : es2015 as esm2015
Compiling @angular/core/testing : es2015 as esm2015
Compiling @ngx-i18nsupport/ngx-i18nsupport-lib : es2015 as esm2015
Compiling @angular/platform-browser : es2015 as esm2015
Compiling @angular/common/http : es2015 as esm2015
Compiling @angular/router : es2015 as esm2015
Compiling @angular/forms : es2015 as esm2015
Compiling @angular/platform-browser-dynamic : es2015 as esm2015
Compiling @angular/platform-browser/testing : es2015 as esm2015
Compiling @angular/common/testing : es2015 as esm2015
Compiling apollo-angular-link-http-common : es2015 as esm2015
Compiling @angular/animations/browser/testing : es2015 as esm2015
Compiling @angular/common/http/testing : es2015 as esm2015
Compiling @cando-cx-ng/shared : es2015 as esm2015
Compiling @angular/platform-browser/animations : es2015 as esm2015
Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015
Compiling @angular/router/testing : es2015 as esm2015
Compiling @ngx-i18nsupport/ngx-i18nsupport : es2015 as esm2015
Error: Failed to compile entry-point @cando-cx-ng/shared (es2015 as esm2015) due to compilation errors:
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:57:17 - error NG2003: No suitable injection token for parameter 'errorService' of class 'ErrorComponent'.
no type or decorator

57     constructor(errorService) {
                   ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:221:17 - error NG2003: No suitable injection token for parameter 'componentFactoryResolver' of class 'ModalComponent'.
no type or decorator

221     constructor(componentFactoryResolver, modalService) {
                    ~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:289:17 - error NG2003: No suitable injection token for parameter 'sanitizer' of class 'SafeHTMLPipe'.
no type or decorator

289     constructor(sanitizer) {
                    ~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:404:17 - error NG2003: No suitable injection token for parameter 'imageService' of class 'ImageComponent'.
no type or decorator

404     constructor(imageService) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:476:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ComponentsLibraryComponent'.
no type or decorator

476     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:504:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductAttributesComponent'.
no type or decorator

504     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:523:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductLogosComponent'.
no type or decorator

523     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:539:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductSpecialsComponent'.
no type or decorator

539     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:606:17 - error NG2003: No suitable injection token for parameter 'videoService' of class 'VideoComponent'.
no type or decorator

606     constructor(videoService, imageService, componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:639:17 - error NG2003: No suitable injection token for parameter 'videoService' of class 'VideoPlayerComponent'.
no type or decorator

639     constructor(videoService, modalService) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:671:13 - error NG6001: The class 'ErrorComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

671             ErrorComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:56:5
    56 let ErrorComponent = class ErrorComponent {
           ~~~~~~~~~~~~~~
    'ErrorComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:675:13 - error NG6001: The class 'ModalComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

675             ModalComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:220:5
    220 let ModalComponent = class ModalComponent {
            ~~~~~~~~~~~~~~
    'ModalComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:676:13 - error NG6001: The class 'SafeHTMLPipe' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

676             SafeHTMLPipe,
                ~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:288:5
    288 let SafeHTMLPipe = class SafeHTMLPipe {
            ~~~~~~~~~~~~
    'SafeHTMLPipe' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:677:13 - error NG6001: The class 'ImageComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

677             ImageComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:403:5
    403 let ImageComponent = class ImageComponent {
            ~~~~~~~~~~~~~~
    'ImageComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:678:13 - error NG6001: The class 'ComponentsLibraryComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

678             ComponentsLibraryComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:475:5
    475 let ComponentsLibraryComponent = class ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ComponentsLibraryComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:679:13 - error NG6001: The class 'ProductAttributesComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

679             ProductAttributesComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:503:5
    503 let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ProductAttributesComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:680:13 - error NG6001: The class 'ProductLogosComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

680             ProductLogosComponent,
                ~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:522:5
    522 let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~
    'ProductLogosComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:681:13 - error NG6001: The class 'ProductSpecialsComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

681             ProductSpecialsComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:538:5
    538 let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~
    'ProductSpecialsComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:684:13 - error NG6001: The class 'VideoComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

684             VideoComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:605:5
    605 let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~
    'VideoComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:685:13 - error NG6001: The class 'VideoPlayerComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

685             VideoPlayerComponent,
                ~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:638:5
    638 let VideoPlayerComponent = class VideoPlayerComponent {
            ~~~~~~~~~~~~~~~~~~~~
    'VideoPlayerComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:56:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

56 let ErrorComponent = class ErrorComponent {
       ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:220:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

220 let ModalComponent = class ModalComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:288:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

288 let SafeHTMLPipe = class SafeHTMLPipe {
        ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:403:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

403 let ImageComponent = class ImageComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:475:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

475 let ComponentsLibraryComponent = class ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:503:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

503 let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:522:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

522 let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:538:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

538 let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:605:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

605 let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:638:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

638 let VideoPlayerComponent = class VideoPlayerComponent {
        ~~~~~~~~~~~~~~~~~~~~

Warning: Skipping processing of @cando-cx-ng/b2b-product-detail because its dependency @cando-cx-ng/shared failed to compile.
Warning: Skipping processing of @cando-cx-ng/b2b-product-listing because its dependency @cando-cx-ng/shared failed to compile.
Compiling @ngx-i18nsupport/tooling : es2015 as esm2015
Compiling apollo-angular/testing : es2015 as esm2015
Compiling apollo-angular-link-http : es2015 as esm2015

Compiling @cando-cx-ng/shared : es2015 as esm2015

ERROR in Failed to compile entry-point @cando-cx-ng/shared (es2015 as esm2015) due to compilation errors:
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:57:17 - error NG2003: No suitable injection token for parameter 'errorService' of class 'ErrorComponent'.
no type or decorator

57     constructor(errorService) {
                   ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:221:17 - error NG2003: No suitable injection token for parameter 'componentFactoryResolver' of class 'ModalComponent'.
no type or decorator

221     constructor(componentFactoryResolver, modalService) {
                    ~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:289:17 - error NG2003: No suitable injection token for parameter 'sanitizer' of class 'SafeHTMLPipe'.
no type or decorator

289     constructor(sanitizer) {
                    ~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:404:17 - error NG2003: No suitable injection token for parameter 'imageService' of class 'ImageComponent'.
no type or decorator

404     constructor(imageService) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:476:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ComponentsLibraryComponent'.
no type or decorator

476     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:504:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductAttributesComponent'.
no type or decorator

504     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:523:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductLogosComponent'.
no type or decorator

523     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:539:17 - error NG2003: No suitable injection token for parameter 'componentLibrary' of class 'ProductSpecialsComponent'.
no type or decorator

539     constructor(componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:606:17 - error NG2003: No suitable injection token for parameter 'videoService' of class 'VideoComponent'.
no type or decorator

606     constructor(videoService, imageService, componentLibrary, elementRef, changeDetector, ngZone) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:639:17 - error NG2003: No suitable injection token for parameter 'videoService' of class 'VideoPlayerComponent'.
no type or decorator

639     constructor(videoService, modalService) {
                    ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:671:13 - error NG6001: The class 'ErrorComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

671             ErrorComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:56:5
    56 let ErrorComponent = class ErrorComponent {
           ~~~~~~~~~~~~~~
    'ErrorComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:675:13 - error NG6001: The class 'ModalComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

675             ModalComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:220:5
    220 let ModalComponent = class ModalComponent {
            ~~~~~~~~~~~~~~
    'ModalComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:676:13 - error NG6001: The class 'SafeHTMLPipe' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

676             SafeHTMLPipe,
                ~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:288:5
    288 let SafeHTMLPipe = class SafeHTMLPipe {
            ~~~~~~~~~~~~
    'SafeHTMLPipe' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:677:13 - error NG6001: The class 'ImageComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

677             ImageComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:403:5
    403 let ImageComponent = class ImageComponent {
            ~~~~~~~~~~~~~~
    'ImageComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:678:13 - error NG6001: The class 'ComponentsLibraryComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

678             ComponentsLibraryComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:475:5
    475 let ComponentsLibraryComponent = class ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ComponentsLibraryComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:679:13 - error NG6001: The class 'ProductAttributesComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

679             ProductAttributesComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:503:5
    503 let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ProductAttributesComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:680:13 - error NG6001: The class 'ProductLogosComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

680             ProductLogosComponent,
                ~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:522:5
    522 let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~
    'ProductLogosComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:681:13 - error NG6001: The class 'ProductSpecialsComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

681             ProductSpecialsComponent,
                ~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:538:5
    538 let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~~~~~~~~~~~
    'ProductSpecialsComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:684:13 - error NG6001: The class 'VideoComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

684             VideoComponent,
                ~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:605:5
    605 let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
            ~~~~~~~~~~~~~~
    'VideoComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:685:13 - error NG6001: The class 'VideoPlayerComponent' is listed in the declarations of the NgModule 'SharedModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

685             VideoPlayerComponent,
                ~~~~~~~~~~~~~~~~~~~~

  node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:638:5
    638 let VideoPlayerComponent = class VideoPlayerComponent {
            ~~~~~~~~~~~~~~~~~~~~
    'VideoPlayerComponent' is declared here.
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:56:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

56 let ErrorComponent = class ErrorComponent {
       ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:220:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

220 let ModalComponent = class ModalComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:288:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

288 let SafeHTMLPipe = class SafeHTMLPipe {
        ~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:403:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

403 let ImageComponent = class ImageComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:475:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

475 let ComponentsLibraryComponent = class ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:503:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

503 let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:522:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

522 let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:538:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

538 let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:605:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

605 let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
        ~~~~~~~~~~~~~~
node_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js:638:5 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

Is it missing an Angular annotation?

638 let VideoPlayerComponent = class VideoPlayerComponent {
        ~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fumo-app@0.0.0 build:int: `ng build --configuration=integration && node build/post-build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fumo-app@0.0.0 build:int script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jenkins/.npm/_logs/2020-06-24T14_03_00_831Z-debug.log

Expected Behaviour

Angular should still be able to compile the application using a package that was compiled with ng-packagr v10.

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr: 10.0.0
@angular/*: 9.1.11
typescript: 3.8.3
rxjs: 6.5.5
node: 12.16.3
npm/yarn: 6.14.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JoostKcommented, Jun 26, 2020

Yes. ng-packagr has a peer dependency on Angular 10.

0reactions
github-actions[bot]commented, Jul 27, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
Sometimes "breaking changes", such as the removal of support for select APIs and features, are necessary to innovate and stay current with new...
Read more >
Version 10 of Angular Now Available | by Stephen Fluin
Version 10.0.0 is here! This is a major release that spans the entire platform, including the framework, Angular Material, and the CLI.
Read more >
Update Angular to v15
Breaking changes in Angular v15link ... These are the aspects of Angular that behave differently in v15 and that might require you to...
Read more >
Deprecated APIs and features - Angular
Angular strives to balance innovation and stability. Sometimes, APIs and features become obsolete and need to be removed or replaced so that Angular...
Read more >
Guide to update your Angular application v5.2 -> v6.1 for basic ...
Update any scripts you may have in your package.json to use the latest Angular CLI commands. All CLI commands now use two dashes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found