Code Monkey home page Code Monkey logo

Comments (12)

paulpflug avatar paulpflug commented on September 25, 2024 1

I published 0.3.0, should work now. 😄

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024 1

your data object needs at least 1 row, you can postpone the init of clusterize with the v-bind:auto-start=false attribute and call start() on the component instance later, once you have the data

or simply use the dynamic data callback:
https://github.com/vue-comps/vue-clusterize#dynamic-data
example:
https://github.com/vue-comps/vue-clusterize/blob/master/dev/loading.vue

I will look into Voie, thanks for pointing 😄

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024

Yes this project is active.
This problem is related to vuejs#2339.
How did you create your root instance of vue?

Am 18. Mai 2016 11:05:01 vorm. schrieb rendom [email protected]:

Not sure if I'm doing something wrong or if this library is broken with
latest vue? Is this project active?
I get following error Uncaught TypeError: Cannot read property
'createAnchor' of undefined

this.end = this.Vue.util.createAnchor('clusterize-cluster-end');

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#2

from vue-clusterize.

rendom avatar rendom commented on September 25, 2024

Fyi, I'm using Browserify+Vueify.

main.js

var Vue = require('vue')
new Vue({
    el: 'body',
    components: {
        Foo,
        Bar
    }
})

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024

Thanks. Did it work with a previous version of vue?

Am 18. Mai 2016 1:58:41 nachm. schrieb rendom [email protected]:

Fyi, I'm using Browserify+Vueify.

main.js

var Vue = require('vue')
new Vue({
    el: 'body',
    components: {
        Foo,
        Bar
    }
})

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#2 (comment)

from vue-clusterize.

rendom avatar rendom commented on September 25, 2024

#4 :)

Btw, I can't get the dev environment working here, so can you please push a new build?

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024

hey, I'm sorry man, vuejs/vue@3f5c916 (>=v1.0.24) broke vue-clusterize. I'm currently unable to provide a working build.

I will have to figure something out...

from vue-clusterize.

Teknologica avatar Teknologica commented on September 25, 2024

I'm having a similar issue TypeError: this.Vue.util is undefined using Vue 1.0.24 and vue-clusterize 0.3.0. Using Webpack with Vue loader. It seems the mixin for Vue (this.Vue) isn't working, it is installed however. I haven't been able to find a solution so far.

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024

@Teknologica

Ok, I can't reproduce, but this is an important error. I need a reliable way to get the Vue instance from within the component to get clusterize working (vuejs/vue#2339)

This is my current try:
https://github.com/paulpflug/vue-mixins/blob/master/src/vue.coffee

You could help me:

  • how did you include Vue? require("Vue")?
  • how did you create your root instance?

I tried with the Vue-webpack-simple

import Vue from 'vue'
import App from './App.vue'
new Vue({
  el: 'body',
  components: { App }
})

And in App.vue the vue-mixins/vue is working and giving the Vue instance.

from vue-clusterize.

Teknologica avatar Teknologica commented on September 25, 2024

I think the error is caused by the different project structure I used. For the router I have Voie. It doesn't setup like the official router. I got it working temporarily by modifying the distribution files to include var Vue = require("vue"); and changed this.Vue where required. I did stumble into another error afterwards height of row is 0 but that's another issue, probably caused by the fact the content is not displayed at init.

My structure is a mix of this Voie example (root instance) and the official webpack template for Vue. My guess is that there is no accessible Vue instance within Voie and how it bootstraps components up.

from vue-clusterize.

paulpflug avatar paulpflug commented on September 25, 2024

@Teknologica
I tried Voie, but it worked for me..

I pushed a new version of vue-mixins (0.2.9) with a more robust way of getting the Vue instance, anyway. It "should" get installed if you reinstall vue-clusterize. Could you try it and report back?

from vue-clusterize.

Teknologica avatar Teknologica commented on September 25, 2024

@paulpflug Due to the time constraints on the project we had to use a lesser solution. I will revisit this in the future and let you know the results. Thanks for the help!

from vue-clusterize.

Related Issues (12)

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.