> ng new kendo-drop --minimal
> npm install @progress/kendo-angular-{dropdowns,l10n}
In package.json, amend the build script
"build": "ng build --target production --aot true --build-optimizer true --stats-json true"
In app.module.ts, replace code with this snippet
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
DropDownsModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
In app.component.ts, add this code (Copied from official docs)
@Component({
selector: 'my-app',
template: `
<div class="example-config">
<input id="ac" type="checkbox" [(ngModel)]="allowCustom">
<label for="ac">Allow custom values</label>
</div>
<div class="example-wrapper">
<p>Favorite sport:</p>
<kendo-combobox [data]="listItems" [allowCustom]="allowCustom">
</kendo-combobox>
</div>
`
})
class AppComponent {
public allowCustom: boolean = true;
public listItems: Array<string> = ["Baseball", "Basketball", "Cricket", "Field Hockey", "Football", "Table Tennis", "Tennis", "Volleyball"];
}
Now run the build script
> npm run build
ERROR in ./node_modules/rxjs/observable/BoundCallbackObservable.js
Module build failed: TypeError: Cannot read property 'type' of undefined
Build-optimizer reduces the size of final output files by a large margin and I would like to keep it turned on
Package versions:
npm ls --depth 0
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @progress/[email protected]
├── @progress/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Browser:
System:
The only thing that seems to help is downgrading Typescript to 2.4.0:
npm install --save-dev [email protected]
The problem seems to be caused by a code fragment bundled in rxjs. I'll try to extract a minimal reproduction sample out of and file with the Typescript project.
Logged the issue as Microsoft/TypeScript#18011
Should be fixed in Typescript v2.5.1
Thank you for investigating @tsvetomir!