Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for generating the UML #4

Open
aryanisml opened this issue Jun 7, 2018 · 5 comments
Open

Error for generating the UML #4

aryanisml opened this issue Jun 7, 2018 · 5 comments

Comments

@aryanisml
Copy link

Got the error while running the following statement in angular project
tsuml --glob ./src/**/*.ts

TypeError: Cannot read property 'replace' of undefined
at Request._callback (C:\User\AppData\Roaming\npm\node_modules\tsuml\dist\core\io.js:71:48)
at self.callback (C:\Users\AppData\Roaming\npm\node_modules\tsuml\node_modules\request\request.js:186:22)
at Request.emit (events.js:182:13)
at Request.onRequestError (C:\Users\AppData\Roaming\npm\node_modules\tsuml\node_modules\request\request.js:878:8)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:375:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)

@webia1
Copy link

webia1 commented Aug 29, 2018

same here,..

@navcoder6
Copy link

navcoder6 commented Aug 30, 2018

@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 :)

@bohdanbirdie bohdanbirdie mentioned this issue Nov 30, 2018
@woogonchung
Copy link

$ 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.

@chatoo2412
Copy link

@woogonchung Please refer #3 (comment)

@rajkeshwar
Copy link

rajkeshwar commented Dec 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants