Giter Club home page Giter Club logo

Comments (14)

flibbles avatar flibbles commented on June 8, 2024

Have you upgraded to the latest version of vis-network? That should fix the issue.

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

I'm unable to upgrade as the instance does not start :-)

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

So this is happening in a standalone tiddlywiki file?

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

It's a nodejs installation.

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

Right. You did say nodejs. My listening skills are poor.

If you're installing your plugins through the browser, you must have all your plugins in a "plugin" directory off your root dir? Is that correct?

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

yes. The plugins files are actually stored in the root directory and renamed (pathname included)

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

All right, I think I figured this out.

  1. Download the vis-network json file from here.
  2. On the command line, cd to the root directory of your project, and then type:
    • tiddlywiki --import <path/to/that/file.json> application/json
      ...where <path/to/that/file.json> is probably something like ~/Downloads/vis-network.json

That should sort you out. Sorry you have to go through this. Tiddlywiki V5.3.0 has suddenly decided to disallow Global assignment in nodejs, which is something that the vis-network relied on. The new version has a workaround for this.

Edit: corrected application/son to be application/json

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

Crap. That's not going to work, is it? The command line won't even run because of this issue.

Let me think about this.

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

It does not work as the program stopped during loading :-)
I need to remove the plugins manually, i guess.

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

Okay, I think I figured it out.

  1. Yes, remove the old vis-network plugin manually like you said.
  2. You can put that vis-network.json file directly into your <root>/tiddlers directory. That appears to make it load as a plugin, and while it's not a perfect place for it, this will at least allow you to load up your tiddlywiki.

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

But you should only need to remove the vis-network plugin, which should be in your <root>/plugins directory, I think, depending on how you installed.

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

I've removed all $_plugins_felixhayashi* files and the instance is online.
I guess it would be wise to add a "safe mode" flag to tiddlywiki nodejs which disables plugins loading :-)

Thank you very much for your help.

Sincerely

from tw5-tiddlymap.

flibbles avatar flibbles commented on June 8, 2024

Sorry you had to fully uninstall TiddlyMap to get back online. If you upgrade to the latest versions of TMap and its dependencies, everything should be functional again.

Edit: Which, by the way, can be found here

from tw5-tiddlymap.

ssow avatar ssow commented on June 8, 2024

No worries. I've learnt something from the experience.

from tw5-tiddlymap.

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.