Comments (20)
I forgot to publish :) 👍
But your solution is ok too.
Let me know here if 0.10.1 also works, thanks!
I'm closing this issue.
from gantt-elastic.
@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:
nwfsc-fram/boatnet#192
from gantt-elastic.
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 name
property.
For quick fix you can try someting like this
// 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
from gantt-elastic.
Thanks @neuronetio , I seem to be getting the same error message with your quick fix code.
from gantt-elastic.
what about now? (v0.10.1)
from gantt-elastic.
import GanttElastic from 'gantt-elastic';
@Component({
components: {
'gantt-elastic': GanttElastic
}
})
export default class BaseIterator extends Vue {
this seems to work for me on 0.10.0. is 0.10.1 published to NPM yet?
from gantt-elastic.
It still loads using this method on 0.10.1 for me. However, I am seeing the following error. Is it related?
[Vue warn]: Error in created hook: "ReferenceError: Vue is not defined"
found in
---> <GanttElastic> at node_modules/gantt-elastic/src/GanttElastic.vue
from gantt-elastic.
not related but important! :)
from gantt-elastic.
We are still getting the same register error. I did a
yarn add gantt-elastic@latest
and I rebuilt everything....so I'm pretty sure I'm on 0.10.1
Any thoughts?
from gantt-elastic.
@eaf-andrewbaccus try 0.10.14
@Mak-NOAA update to 0.10.14
if problem still exists try @eaf-andrewbaccus solution
import GanttElastic from 'gantt-elastic';
@Component({
components: {
'gantt-elastic': GanttElastic
}
})
export default ...
from gantt-elastic.
@Mak-NOAA I will check this anyway on typescript, but I don't know when - maybe in next week
from gantt-elastic.
@Mak-NOAA And first of all, try to import GanttElastic
in your component directly - do not add gantt-elastic to quasar components, because it is not a quasar module :)
from gantt-elastic.
After resolving the component registration, we are seeing the same issue eaf-andrewbaccus reported:
[Vue warn]: Error in created hook: "ReferenceError: Vue is not defined"
found in
---> <GanttElastic> at node_modules/gantt-elastic/src/GanttElastic.vue
This was in a non-typescript project just created with vue create
from the CLI. Haven't quite figured out how to get it running using the example code provided in Examples. Thanks for a cool looking component--hoping we can figure it out!
from gantt-elastic.
@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:
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,
from gantt-elastic.
from gantt-elastic.
check 0.10.15
from gantt-elastic.
@neuronetio is 0.10.15 supposed to fix the issue with
73:39 Parameter 'task' implicitly has an 'any' type.
?
I still see the error
from gantt-elastic.
@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.
from gantt-elastic.
@Mak-NOAA https://stackoverflow.com/questions/43064221/typescript-ts7006-parameter-xxx-implicitly-has-an-any-type
from gantt-elastic.
@eaf-andrewbaccus @wsmith-nwfsc Do you still have this error Error in created hook: "ReferenceError: Vue is not defined"
in 0.10.15?
from gantt-elastic.
Related Issues (20)
- Calendar vue by chinese
- How to use gantt elastic with angular HOT 1
- gantt chart is not showing HOT 1
- Export Gantt Chart to PDF HOT 1
- Showing full year HOT 1
- "Unexpected value NaN% parsing width attribute" warning when adding task to chart HOT 4
- gantt-schedule-timeline-calendar Transition Schedule HOT 1
- blocks browser when no tasks given (empty array) HOT 5
- will this still be maintained? HOT 2
- style for calendar-wrapper not applied (width) HOT 7
- Subtasks roll up to parent task HOT 1
- Dayjs is not defined HOT 3
- gantt-elastic vs gantt-schedule-timeline-calendar HOT 1
- more tasks for line HOT 5
- exclude holidays HOT 1
- Does it support react? HOT 3
- Load events dynamically HOT 4
- Start hour and end hour in the chart task. HOT 1
- IE support HOT 1
- Calendar vue by weeks/Months/Years HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gantt-elastic.