v10 breaks Angular build
See original GitHub issueType 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
[31mError:[0m Failed to compile entry-point @cando-cx-ng/shared (es2015 as esm2015) due to compilation errors:
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m57[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'errorService' of class 'ErrorComponent'.
no type or decorator
[7m57[0m constructor(errorService) {
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m221[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'componentFactoryResolver' of class 'ModalComponent'.
no type or decorator
[7m221[0m constructor(componentFactoryResolver, modalService) {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m289[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'sanitizer' of class 'SafeHTMLPipe'.
no type or decorator
[7m289[0m constructor(sanitizer) {
[7m [0m [91m ~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m404[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'imageService' of class 'ImageComponent'.
no type or decorator
[7m404[0m constructor(imageService) {
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m476[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'componentLibrary' of class 'ComponentsLibraryComponent'.
no type or decorator
[7m476[0m constructor(componentLibrary, elementRef, changeDetector, ngZone) {
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m504[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'componentLibrary' of class 'ProductAttributesComponent'.
no type or decorator
[7m504[0m constructor(componentLibrary, elementRef, changeDetector, ngZone) {
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m523[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'componentLibrary' of class 'ProductLogosComponent'.
no type or decorator
[7m523[0m constructor(componentLibrary, elementRef, changeDetector, ngZone) {
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m539[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'componentLibrary' of class 'ProductSpecialsComponent'.
no type or decorator
[7m539[0m constructor(componentLibrary, elementRef, changeDetector, ngZone) {
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m606[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'videoService' of class 'VideoComponent'.
no type or decorator
[7m606[0m constructor(videoService, imageService, componentLibrary, elementRef, changeDetector, ngZone) {
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m639[0m:[93m17[0m - [91merror[0m[90m NG2003: [0mNo suitable injection token for parameter 'videoService' of class 'VideoPlayerComponent'.
no type or decorator
[7m639[0m constructor(videoService, modalService) {
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m671[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m671[0m ErrorComponent,
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m56[0m:[93m5[0m
[7m56[0m let ErrorComponent = class ErrorComponent {
[7m [0m [96m ~~~~~~~~~~~~~~[0m
'ErrorComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m675[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m675[0m ModalComponent,
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m220[0m:[93m5[0m
[7m220[0m let ModalComponent = class ModalComponent {
[7m [0m [96m ~~~~~~~~~~~~~~[0m
'ModalComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m676[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m676[0m SafeHTMLPipe,
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m288[0m:[93m5[0m
[7m288[0m let SafeHTMLPipe = class SafeHTMLPipe {
[7m [0m [96m ~~~~~~~~~~~~[0m
'SafeHTMLPipe' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m677[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m677[0m ImageComponent,
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m403[0m:[93m5[0m
[7m403[0m let ImageComponent = class ImageComponent {
[7m [0m [96m ~~~~~~~~~~~~~~[0m
'ImageComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m678[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m678[0m ComponentsLibraryComponent,
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m475[0m:[93m5[0m
[7m475[0m let ComponentsLibraryComponent = class ComponentsLibraryComponent {
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
'ComponentsLibraryComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m679[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m679[0m ProductAttributesComponent,
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m503[0m:[93m5[0m
[7m503[0m let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
'ProductAttributesComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m680[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m680[0m ProductLogosComponent,
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m522[0m:[93m5[0m
[7m522[0m let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~~[0m
'ProductLogosComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m681[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m681[0m ProductSpecialsComponent,
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m538[0m:[93m5[0m
[7m538[0m let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
'ProductSpecialsComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m684[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m684[0m VideoComponent,
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m605[0m:[93m5[0m
[7m605[0m let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
[7m [0m [96m ~~~~~~~~~~~~~~[0m
'VideoComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m685[0m:[93m13[0m - [91merror[0m[90m NG6001: [0mThe 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.
[7m685[0m VideoPlayerComponent,
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m638[0m:[93m5[0m
[7m638[0m let VideoPlayerComponent = class VideoPlayerComponent {
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~[0m
'VideoPlayerComponent' is declared here.
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m56[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m56[0m let ErrorComponent = class ErrorComponent {
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m220[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m220[0m let ModalComponent = class ModalComponent {
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m288[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m288[0m let SafeHTMLPipe = class SafeHTMLPipe {
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m403[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m403[0m let ImageComponent = class ImageComponent {
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m475[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m475[0m let ComponentsLibraryComponent = class ComponentsLibraryComponent {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m503[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m503[0m let ProductAttributesComponent = class ProductAttributesComponent extends ComponentsLibraryComponent {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m522[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m522[0m let ProductLogosComponent = class ProductLogosComponent extends ComponentsLibraryComponent {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m538[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m538[0m let ProductSpecialsComponent = class ProductSpecialsComponent extends ComponentsLibraryComponent {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m605[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m605[0m let VideoComponent = class VideoComponent extends ComponentsLibraryComponent {
[7m [0m [91m ~~~~~~~~~~~~~~[0m
[96mnode_modules/@cando-cx-ng/shared/fesm2015/cando-cx-ng-shared.js[0m:[93m638[0m:[93m5[0m - [91merror[0m[90m NG6003: [0mAppears 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?
[7m638[0m let VideoPlayerComponent = class VideoPlayerComponent {
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~[0m
[33mWarning:[0m Skipping processing of @cando-cx-ng/b2b-product-detail because its dependency @cando-cx-ng/shared failed to compile.
[33mWarning:[0m 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. ng-packagr has a peer dependency on Angular 10.
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.