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

Angular2 : problem with licensed version

Asked by MT
7 years ago.

Hi
After switching daypilot from demo version to licensed , project refuses to start.
To replicate: run e.g https://code.daypilot.org/67423/angular-2-scheduler-tutorial-typescript
and switch daypilot to 8.3.2709.tar.gz (latest available)
gives =>
Error: (SystemJS) Cannot read property 'Scheduler' of undefined
TypeError: Cannot read property 'Scheduler' of undefined
at execute (http://localhost:8080/app/app.component.ts!transpiled:69:170)
Error loading http://localhost:8080/app/main.ts

If I do the same in my own project I get similar problems:
first:
(that semicolon at the end ?)
..node_modules\daypilot-pro-angular\daypilot-angular.min.d.ts:1261:2
Statements are not allowed in ambient contexts.
[default] Checking finished with 1 errors

and then:
Uncaught TypeError: Cannot read property 'Angular' of undefined
at eval (eval at <anonymous> (app.js:2851), <anonymous>:61:109)
at eval (eval at <anonymous> (app.js:2851), <anonymous>:69:2)
at Object.<anonymous> (app.js:2851)
at __webpack_require__ (polyfills.js:53)
at eval (eval at <anonymous> (app.js:2641), <anonymous>:4:20)
at Object.<anonymous> (app.js:2641)
at __webpack_require__ (polyfills.js:53)
at Object.<anonymous> (app.js:3793)
at __webpack_require__ (polyfills.js:53)
at webpackJsonpCallback (polyfills.js:24)
at app.js:1

@NgModule({
imports:....
declarations: [....., DayPilot.Angular.Scheduler], <- points here in app.modules.ts

if I replace licensed daypilot min js file with the demo js file everything startsup again.

Have I missed something installing licensed version ?

BR MT

Answer posted by Dan Letecky [DayPilot]
7 years ago.

There is a bug in the latest release. It's already fixed in the latest sandbox build and a new release is on the way - it will be available later today.

Meanwhile, you can use the previous release (8.3.2673).

Sorry for the troubles!

Comment posted by Dan Letecky [DayPilot]
7 years ago.

The new release with the fix is now available:
https://javascript.daypilot.org/daypilot-pro-for-javascript-8-3-sp10/

Comment posted by MT
7 years ago.

Getting same problem with 8.3.2724.tar.gz <- 8.3 SP10
without the ambient context problem then.

Comment posted by MT
7 years ago.

No luck with previous release (8.3.2673) either.
BR MT

Comment posted by MT
7 years ago.

Newest 8.3.2726.tar.gz SP11 seems to work fine!

BR MT

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.