search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Compilation error when running unit tests

Asked by Stevi
4 days ago.

There is compilation type related error present only when running unit tests (jasmine).

This is a blocker to let us upgrade to Angular 20 and DayPilot 2025.3.6564 at the moment.

Did not notice this behavior in angular 19 and DayPilot version 2023.4.5839 (we did not update it since then)

You can reproduce the error in your Angular 20 quick start project https://code.daypilot.org/55207/angular-scheduler-quick-start-project

You need a slight edit to even make it run. Please update imports in the app.spec.ts

 imports: [App, HttpClientTestingModule],

The type error:

Chrome 138.0.0.0 (Windows 10) App should create the app FAILED
        TypeError: Cannot read properties of undefined (reading 'Menu')
            at SchedulerComponent2.<instance_members_initializer> (src/app/scheduler/scheduler.component.ts:46:31)
            at new SchedulerComponent2 (src/app/scheduler/scheduler.component.ts:97:3)
            at NodeInjectorFactory.SchedulerComponent2_Factory [as factory] (ng:///SchedulerComponent2/ɵfac.js:4:10)
            at getNodeInjectable (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:1974:44)
            at instantiateAllDirectives (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:7381:27)
            at createDirectivesInstances (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:7156:5)
            at ɵɵelementStart (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:22234:9)
            at ɵɵelement (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:22289:5)
            at App2_Template (ng:///App2.js:5:21)
            at executeTemplate (node_modules/@angular/core/fesm2022/debug_node-Dn-GvQJo.mjs:7142:9)
Comment posted by Dan Letecky [DayPilot]
4 days ago.

Please let me check it.

Answer posted by Dan Letecky [DayPilot]
4 days ago.

This should be fixed now in the latest sandbox build (2025.3.6593).

Please let me know if the problem persists.

Comment posted by Stevi
4 days ago.

Hi Dan,

I tested the sandbox build. All good.

Thanks for the quick response,

Best Regards,

Stevi.

Comment posted by Dan Letecky [DayPilot]
4 days ago.

Hi Stevi,

Great, thanks for the update!

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):