Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cesco69 opened this issue Nov 8, 2021 · 0 comments

Comments

@cesco69
Copy link

cesco69 commented Nov 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant