Adding gantt-elastic as vue component error #32
Comments
I'll check it tomorrow, and in the meantime leave the vue version here I think that it may be because elastic-gantt doesn't have a // Chart.vue
<template>
<q-page padding>
<gantt-elastic :tasks="tasks" :options="options">
<!-- <gantt-elastic-header slot="header"></gantt-elastic-header>
<gantt-elastic-footer slot="footer"></gantt-elastic-footer> -->
</gantt-elastic>
</q-page>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import GanttElastic from 'gantt-elastic';
@Component
export default class PageAbout extends Vue {
components = { GanttElastic };
private tasks:any;
private options:any;
}
</script> I don't know ts so maybe you must fix this code |
Thanks @neuronetio , I seem to be getting the same error message with your quick fix code. |
what about now? (v0.10.1) |
this seems to work for me on 0.10.0. is 0.10.1 published to NPM yet? |
I forgot to publish :) 👍 |
It still loads using this method on 0.10.1 for me. However, I am seeing the following error. Is it related?
|
not related but important! :) |
@eaf-andrewbaccus try 0.10.14 import GanttElastic from 'gantt-elastic';
@Component({
components: {
'gantt-elastic': GanttElastic
}
})
export default ... |
@Mak-NOAA I will check this anyway on typescript, but I don't know when - maybe in next week |
@Mak-NOAA And first of all, try to import |
After resolving the component registration, we are seeing the same issue eaf-andrewbaccus reported:
This was in a non-typescript project just created with |
@neuronetio we got along a little further and now seeing this layout issue below: I can try to change the style height for class gantt-elastic__main-container-wrapper but I don't think that's the right approach. We're also getting the following error....any thoughts on that would be great as well:
|
Yaaap, I have the same... I,m working on it :) thanks for dialog 👍
pt., 15 mar 2019, 21:00 użytkownik Mak <notifications@github.com> napisał:
… @neuronetio <https://github.com/neuronetio> we got along a little further
and now seeing this layout issue below:
[image: Screen Shot 2019-03-15 at 12 57 24 PM]
<https://user-images.githubusercontent.com/20570382/54458719-e734c980-4721-11e9-8d74-f0011a44f28d.png>
I can try to change the style height for class
gantt-elastic__main-container-wrapper but I don't think that's the right
approach.
We're also getting the following error....any thoughts on that would be
great as well:
ERROR in /Users/seyed.ahmad/boatnet/apps/obs-web/src/views/Chart.vue
73:39 Parameter 'task' implicitly has an 'any' type.
71 | { id: 2, label: 'Description', value: 'label', width: 200, expander: true },
72 | { id: 3, label: 'Assigned to', value: 'user', width: 130, html: true },
> 73 | { id: 3, label: 'Start', value: task => dayjs(task.start).format('YYYY-MM-DD'), width: 78 },
| ^
74 | { id: 4, label: 'Type', value: 'type', width: 68 },
75 | {
76 | id: 5,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX3kcCvbTqb71rRG0IDaY2pCJJsD8aeLks5vW_vPgaJpZM4br_Oe>
.
|
check 0.10.15 |
@neuronetio is 0.10.15 supposed to fix the issue with I still see the error |
@Mak-NOAA I think that this is a typescript related message, and this is why I'm not using typescript :P you must fix it by yourself I will not help here, sorry. |
@eaf-andrewbaccus @wsmith-nwfsc Do you still have this error |
@neuronetio We have it up and running now, thanks! We're just starting a new project, and tracked getting gantt-elastic up and running here: |
Hi all,
Not sure if I should post this on stackoverflow vs here but thought I try it here first. I'm new to gantt-elastic and vue in general but wanted to add gantt-elastic as a vue component. I ran into an issue registering the component.
I installed gantt-elastic using yarn add gantt-elastic.
Then I registered the vue component in my main.ts:
then I tried to add the example in a vue file called Chart.vue:
I receive a Vue-warn of:
How do I register it correctly?
The text was updated successfully, but these errors were encountered: