We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unable to compile an app referencing @syncfusion/ej2-angular-dropdowns

Thread ID:

Created:

Updated:

Platform:

Replies:

151329 Feb 7,2020 01:03 AM UTC Feb 11,2020 09:25 AM UTC Angular - EJ 2 5
loading
Tags: Schedule
Usman
Asked On February 7, 2020 01:03 AM UTC

Hi, I have a basic app which works fine with Angular compiler 8 but today I tried upgrading it to Angular 9 and ran into this during ng build:

Any ideas how to fix this? Btw, the typescript had to be upgraded to latest version due to angular 9 dependencies.

ERROR in Failed to compile entry-point @syncfusion/ej2-angular-dropdowns (module as esm5) due to compilation errors:
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:189:31 - error NG1010: Value at position 
0 in the NgModule.declarations of DropDownListModule is not a reference: [object Object]

189                 declarations: [
                                  ~
190                     DropDownListComponent
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191                 ],
    ~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:181:5 - error NG6002: Appears in the NgModule.imports of DropDownListAllModule, but could not be resolved to an NgModule class

181 var DropDownListModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:181:5 - error NG6003: Appears in the NgModule.exports of DropDownListAllModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class

181 var DropDownListModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:390:31 - error NG1010: Value at position 
0 in the NgModule.declarations of ComboBoxModule is not a reference: [object Object]

390                 declarations: [
                                  ~
391                     ComboBoxComponent
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
392                 ],
    ~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:382:5 - error NG6002: Appears in the NgModule.imports of ComboBoxAllModule, but could not be resolved to an NgModule class

382 var ComboBoxModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:382:5 - error NG6003: Appears in the NgModule.exports of ComboBoxAllModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class

382 var ComboBoxModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:591:31 - error NG1010: Value at position 
0 in the NgModule.declarations of AutoCompleteModule is not a reference: [object Object]

591                 declarations: [
                                  ~
592                     AutoCompleteComponent
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
593                 ],
    ~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:583:5 - error NG6002: Appears in the NgModule.imports of AutoCompleteAllModule, but could not be resolved to an NgModule class

583 var AutoCompleteModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:583:5 - error NG6003: Appears in the NgModule.exports of AutoCompleteAllModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class

583 var AutoCompleteModule = /** @class */ (function () {
        ~~~~~~~~~~~~~~~~~~
node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js:799:31 - error NG1010: Value at position 
0 in the NgModule.declarations of MultiSelectModule is not a reference: [object Object]

Sureshkumar P [Syncfusion]
Replied On February 7, 2020 11:01 AM UTC

Hi Usman, 
 
Greetings from Syncfusion support. 
 
We have checked your requirement. we cannot able to reproduce the reported issue from our end. We have prepared the angular-9 dropdownlist sample. Please find the sample below link.  
 
 
Please find the ng-build and ng-serve comment output screenshot.