Skip to content

Angular 13 with devextreme 21.2.3: TypeError: (0 , _core_renderer__WEBPACK_IMPORTED_MODULE_0__.default)(...)[component] is not a function #1214

Open
@cesco69

Description

@cesco69

Bug Report

Package versions:

angular: 13.0.0

devextreme: 21.2.3
devextreme-angular: 21.2.3

Steps to reproduce:
Place a dxScheduler into empty component

import { Component } from '@angular/core';

@Component({
  template: `<dx-scheduler></dx-scheduler>`
})
export class MyComponent {}

Show this two errors into the console:

TypeError: (0 , _core_renderer__WEBPACK_IMPORTED_MODULE_0__.default)(...)[component] is not a function
    at inheritor._createComponent (dom_component.js:251)
    at FunctionTemplate._render (template_manager.js:52)
    at FunctionTemplate._renderCore (function_template.js:21)
    at FunctionTemplate.render (template_base.js:27)
    at inheritor.<anonymous> (ui.toolbar.base.js:104)
    at bindable_template.js:68
    at bindable_template.js:42
    at watchMethod (devextreme-angular-core.js:160)
    at bindable_template.js:33
    at Array.map (<anonymous>)
    at bindable_template.js:31
    at bindable_template.js:49
    at watchMethod (devextreme-angular-core.js:160)
    at bindable_template.js:22
    at watchChanges (bindable_template.js:22)
TypeError: Cannot read properties of undefined (reading 'option')
    at Scheduler._dimensionChanged (ui.scheduler.js:766)
    at Callback._fireCore (callbacks.js:23)
    at Callback.fireWith (callbacks.js:75)
    at Callback.fire (callbacks.js:83)
    at handleResize (resize_callbacks.js:45)
    at ZoneDelegate.invokeTask (zone.js:406)
    at Object.onInvokeTask (core.mjs:25840)
    at ZoneDelegate.invokeTask (zone.js:405)
    at Zone.runTask (zone.js:178)
    at ZoneTask.invokeTask [as invoke] (zone.js:487)
    at invokeTask (zone.js:1600)
    at globalZoneAwareCallback (zone.js:1637)

This is in debug, the latest instruction before the error:

image

small sample project that reproduces the issue
demo-dx.zip

The workaround is also import DxDropDownModule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions