Closed xmrhahnx closed 4 years ago
Solved! Some refactoring of the Clusterize.js code solves the issue!
@xmrhahnx
How did you manage to get it working in node?
I am doing this, but it won't work.
npm i clusterize.js
var Clusterize = require("Clusterize");
var clusterize= new Clusterize({
rows: data,
scrollId: "scrollArea",
contentId: "contentArea"
});
@8483 I used it on the js client side, so I just included the .js and the .css file like shown in "Include it on your page" section of the quickstart guide . Have you some errors in console?
Hi xmrhahnx,
I am trying to replicate the demo at this page: https://clusterize.js.org/, using the local
Hi xmrhahnx, I am trying to replicate the demo at this page: https://clusterize.js.org/, using the local option, but I get an error message at the DevTools console saying that Clusterize is not defined. Could you please share your refactored clusterize.js? Thank you in advance. best regards Jim
Update on my own previous Question: My problem is solved mysteriously - I tried to use the clusterize.js and then the min file. Neither worked. Searched for a solution for a few days but could not find any. But then, today, I copied the clusterize.js file from https://github.com/NeXTs/Clusterize.js/. This time it worked! When I compared the version I downloaded before and the version I just copied, I find no difference between the two. I don't know why the same version did not work before. Mystery.
Jim
Hi there, i'm trying to use Clusterize.js in my Electron app. If I run my app with node, it works like a charm but when I switch to Electron I obtained the error
Uncaught (in promise) ReferenceError: Clusterize is not defined
in the console.Any suggestion?