Our powerful JS Calendar component


Post by vittorio bianchi »

Hi guys,

When I want to edit a overnight event with the edit button in the info dialog i get an error at

calendar.lite.umd.js:60797

TypeError: Cannot destructure property 'isRectangle' of 'element' as it is null.

It is also not possible to drag and drop the overnight events.
Normal events are still working properly.

Thanks.


Post by mats »

We could not reproduce this issue. To assist you with your question, please provide more details including a runnable test case (as described in our support guidelines).

To get the fastest possible support, provide a simple test case based on our standard examples.


Post by vittorio bianchi »

Hi Mats,

I updated https://github.com/poettl/longevo-bryntum-support for the runnable test.
It is a private repo. ExtAnimal and jsakalos already have access. I can add you too.

Thanks!


Post by Animal »

So I have downloaded that as a zip and unzipped it into a directory. How do I build and run it?


Post by vittorio bianchi »

You have to run
npm install

and after that
npm start

Then you will see the login screen at localhost:4200 and the credentials are in the README at the repo.

Additional instructions are in the README.


Post by Animal »

I tried that and got an error:

Screenshot 2021-12-17 at 10.48.07.png
Screenshot 2021-12-17 at 10.48.07.png (388.25 KiB) Viewed 905 times

Post by Animal »

Found one extra command needed.

npm config set "@bryntum:registry=https://npm.bryntum.com"

It now throws this:

npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR!     npm login

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nige/.npm/_logs/2021-12-17T10_05_46_949Z-debug.log

Do I have to set up an account somewhere to log into somewhere?


Post by vittorio bianchi »

Hi!

Yeah you have to login to your npm registry with an account that owns a calendar license.
Or otherwise with an trial account but then you have to change this in the package.json.
https://www.bryntum.com/docs/calendar/guide/Calendar/npm-repository


Post by Animal »

Well, I set up an account here: https://www.npmjs.com/

And then logged in on the command line and that went OK.

But it then threw exactly the same error when I tried npm install again.


Post by vittorio bianchi »

No account from npm you need an account from bryntum npm with a calendar license.

$ npm login --registry=https://npm.bryntum.com

Username: user..yourdomain.com
Password: your-customer-zone-password
Email: (this IS public) user@yourdomain.com


Post Reply