Im trying to use calendar-vue in typescript, but the type declarations of calendar-vue are missing. Any chance that you can provide these?
Support Forum
Sure, see the attached test project. If you run it you'll get:
Could not find a declaration file for module '@bryntum/calendar-vue'. '/Users/xxx/Develop/CalendarVueTypescript/calendar-vue-typescript/node_modules/@bryntum/calendar-vue/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/bryntum__calendar-vue` if it exists or add a new declaration (.d.ts) file containing `declare module '@bryntum/calendar-vue';`
I deleted the contents of node_modules in the zip to save space in the attachment. Just install the modules and run 'npm run serve' to see the error. (the calendar.d.ts file is included. I manually copied it over, just to be sure).
PS: I have used the trial package of the calendar.
- Attachments
-
- calendar-vue-typescript.zip
- (1.18 MiB) Downloaded 114 times
Thanks for the report! We will address: https://github.com/bryntum/support/issues/3026
Also we have plans to add Vue+TypeScript demos: https://github.com/bryntum/support/issues/2964
Pavlo Miklashevych
Sr. Frontend Developer
Hi, vtx.
Please try this attached simple app based on your example.
- Unpack
- Run
npm install
- Run
npm run serve
for dev server and navigate to https://localhost:8080/ - Run
npm run build
for building dist package
Project zip contains patch folder with index.d.ts which is automatically copied with postinstall to node_modules\@bryntum\calendar-vue for typescript compatibility.
Also please check the correct way for using trial calendar npm package here
https://www.bryntum.com/docs/calendar/#Calendar/guides/npm-repository.md#installing-trial-packages
This will show Calendar in Browser