ngx-bootstrap-multiselect icon indicating copy to clipboard operation
ngx-bootstrap-multiselect copied to clipboard

NgModule decorator outside module function

Open bertdewolf opened this issue 2 years ago • 0 comments

In for example ngx-bootstrap-multiselect.umd.js I see:

var NgxBootstrapMultiselectModule = /** @class */ (function () {
    function NgxBootstrapMultiselectModule() {
    }
    return NgxBootstrapMultiselectModule;
}());

NgxBootstrapMultiselectModule.decorators = [
    { type: core.NgModule, args: [{
                declarations: [
                    NgxDropdownMultiselectComponent,
                    MultiSelectSearchFilter,
                    AutofocusDirective,
                    OffClickDirective
                ],
                imports: [
                    common.CommonModule,
                    forms.ReactiveFormsModule
                ],
                exports: [
                    NgxDropdownMultiselectComponent,
                    MultiSelectSearchFilter,
                ],
            },] }
];

For angular 14 ngcc to work correctly, the NgModule decorators should be within the NgxBootstrapMultiselectModule function. This in turn causes for errors like 'NgxBootstrapMultiselectModule does not have a module def (ɵmod property)'

With which typescript version was this bundle packaged?

I cannot play with it myself since not everything for angular cli is in this repo.

bertdewolf avatar Jan 05 '23 14:01 bertdewolf