Comments (12)
I published 0.3.0, should work now. 😄
from vue-clusterize.
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.
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 undefinedthis.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.
Fyi, I'm using Browserify+Vueify.
main.js
var Vue = require('vue')
new Vue({
el: 'body',
components: {
Foo,
Bar
}
})
from vue-clusterize.
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.
#4 :)
Btw, I can't get the dev environment working here, so can you please push a new build?
from vue-clusterize.
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.
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.
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.
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.
@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.
@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)
- Not an issue HOT 1
- MutationObserver in IE10 HOT 7
- Logic repeating because of shared _uid of child components HOT 6
- Mixed height on rows HOT 1
- Working with VueJS 2.1.0 ? HOT 7
- help
- Question: does it support multiple items per row? HOT 5
- Throw "Cannot read property 'getBoundingClientRect' of undefined" when data is empty(first-load) HOT 4
- redraw() does not work.... HOT 4
- Can I get the index? HOT 1
- Uncaught TypeError: Cannot read property 'nr' of undefined HOT 2
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 vue-clusterize.