I'm getting an empty png/puml ?
mv740 opened this issue · 4 comments
mv740 commented
Hi,
I am trying to use your package to generate my diagram.
since my entities are using *.ts , I am using the following command :
ts-node ./node_modules/typeorm-uml/bin/run ormconfig.json --download=diagram.puml--format=puml
@startuml
!define table(x) class x << (T,#FFAAAA) >>
!define pkey(x) <b>x</b>
hide stereotypes
hide fields
@enduml
which render an empty png
Am I doing something wrong ?
I'm doing this on windows.
eugene-manuilov commented
Hi @mv740
can you show me your ormconfig.json
file? Looks like it can't find your entities...
mv740 commented
{
"type": "postgres",
"host": "postgres",
"port": 5432,
"username": "postgres",
"password": "password",
"database": "database",
"synchronize": false,
"dropSchema": false,
"entities": [
"/usr/src/app/src/config/../**/*.entity{.ts,.js}"
],
"migrations": [
"/usr/src/app/src/config/../migrations/*{.ts,.js}"
],
"cli": {
"migrationsDir": "src/migrations"
}
}
eugene-manuilov commented
Can you try something like this?
{
"type": "postgres",
"host": "postgres",
"port": 5432,
"username": "postgres",
"password": "password",
"database": "database",
"synchronize": false,
"dropSchema": false,
"entities": [
"src/**/*.entity.ts",
"src/**/*.entity.js"
],
"migrations": [
"/usr/src/app/src/config/../migrations/*{.ts,.js}"
],
"cli": {
"migrationsDir": "src/migrations"
}
}
mv740 commented
Hi,
thank you, it's working now