GithubHelp home page GithubHelp logo

Error for generating the UML about tsuml HOT 5 OPEN

aryanisml avatar aryanisml commented on July 1, 2024 2
Error for generating the UML

from tsuml.

Comments (5)

navcoder6 avatar navcoder6 commented on July 1, 2024 6

@aryanisml ; @webia1
I also faced similar issue on checking the io.js file found that it might have something to do with connection or firewall setting not allowing to connect with "https://yuml.me/diagram/plain/class/".[Just my rough guess ;) ]
.So inside the function download where the error is coming, I did a console log of the "dsl" that is passed. It would look something like this "[AppRoutingModule{bg:skyblue}][AppRoutingModule||],,[AppComponent{bg:skyblue}][AppComponent|title;isHeaderVisible;|]......".
Then simply append the above "dsl" string to the above url so that it should look something like "https://yuml.me/diagram/plain/class/[AppRoutingModule{bg:skyblue}][AppRoutingModule||],,[AppComponent{bg:skyblue}][AppComponent|title;isHeaderVisible;|]......".
Copy and paste it in browser and you should get your diagram.
Another option is to open Postman and do a post on above url with form-data having key "dsl_text" and value as "dsl" that you have copied earlier.
Hope it helps :)

from tsuml.

webia1 avatar webia1 commented on July 1, 2024

same here,..

from tsuml.

woogonchung avatar woogonchung commented on July 1, 2024

$ tsuml --glob ./src/**/*.ts
does not work properly.

  • When I list files with the extension *.ts I got more than 10 typescript files with class defined.
  • However, I got only the first *.ts file (out of 10 ts files) picked up by the tsuml, hence is useless.
  • I have also changed the node versions with nvm utility. Eg) v8.9.3, v7.7.1, etc
    Do I have anything missing to use the tool properly?
    Thanks.

from tsuml.

chatoo2412 avatar chatoo2412 commented on July 1, 2024

@woogonchung Please refer #3 (comment)

from tsuml.

rajkeshwar avatar rajkeshwar commented on July 1, 2024

I am facing the same issue here

/Users/xxxx/demo-app/node_modules/tsuml/dist/core/io.js:71
                        var svgFileName = body.replace(".png", ".svg");
                                               ^

TypeError: Cannot read property 'replace' of undefined
    at Request._callback (/Users/xxxx/demo-app/node_modules/tsuml/dist/core/io.js:71:48)
    at self.callback (/Users/xxxx/demo-app/node_modules/tsuml/node_modules/request/request.js:186:22)
    at Request.emit (events.js:189:13)

"tsuml": "0.0.1-alpha.8" and node-v10.15.3

from tsuml.

Related Issues (16)

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.