Giter Site home page Giter Site logo

Comments (20)

neuronetio avatar neuronetio commented on May 12, 2024 1

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.

 avatar commented on May 12, 2024 1

@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.

neuronetio avatar neuronetio commented on May 12, 2024

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.

Mak-NOAA avatar Mak-NOAA commented on May 12, 2024

Thanks @neuronetio , I seem to be getting the same error message with your quick fix code.

from gantt-elastic.

neuronetio avatar neuronetio commented on May 12, 2024

what about now? (v0.10.1)

from gantt-elastic.

eaf-andrewbaccus avatar eaf-andrewbaccus commented on May 12, 2024
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.

eaf-andrewbaccus avatar eaf-andrewbaccus commented on May 12, 2024

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.

neuronetio avatar neuronetio commented on May 12, 2024

not related but important! :)

from gantt-elastic.

Mak-NOAA avatar Mak-NOAA commented on May 12, 2024

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

Screen Shot 2019-03-14 at 4 18 48 PM

Any thoughts?

from gantt-elastic.

neuronetio avatar neuronetio commented on May 12, 2024

@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.

neuronetio avatar neuronetio commented on May 12, 2024

@Mak-NOAA I will check this anyway on typescript, but I don't know when - maybe in next week

from gantt-elastic.

neuronetio avatar neuronetio commented on May 12, 2024

@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.

 avatar commented on May 12, 2024

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.

Mak-NOAA avatar Mak-NOAA commented on May 12, 2024

@neuronetio we got along a little further and now seeing this layout issue below:

Screen Shot 2019-03-15 at 12 57 24 PM

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.

neuronetio avatar neuronetio commented on May 12, 2024

from gantt-elastic.

neuronetio avatar neuronetio commented on May 12, 2024

check 0.10.15

from gantt-elastic.

Mak-NOAA avatar Mak-NOAA commented on May 12, 2024

@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.

neuronetio avatar neuronetio commented on May 12, 2024

@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.

neuronetio avatar neuronetio commented on May 12, 2024

@Mak-NOAA https://stackoverflow.com/questions/43064221/typescript-ts7006-parameter-xxx-implicitly-has-an-any-type

from gantt-elastic.

neuronetio avatar neuronetio commented on May 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.