No output generated
See original GitHub issueI’ve looked through all the other topical issues and it seems even with the latest version I still cannot get it to produce any output, despite saying it completed just fine 😦
OS: MacOS 12.0.1 package version: 0.6.1
Schema
generator client {
provider = "prisma-client-js"
}
generator erd {
provider = "prisma-erd-generator"
output = "ERD.png"
}
generator nestgraphql {
provider = "node ../../../node_modules/prisma-nestjs-graphql"
output = "../src/@generated/"
reExport = Single
fields_Validator_from = "class-validator"
fields_Validator_input = true
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
/// @validator.IsUUID(all)
id String @id @default(uuid()) @db.Uuid
/// @Validator.IsEmail()
email String @unique
/// @Validator.Length(8, 64)
password String
/// @Validator.IsJSON()
roles Json[]
profile Profile?
/// @HideField({ output: false, input: true })
createdAt DateTime @default(now())
/// @HideField({ output: false, input: true })
updatedAt DateTime @default(now())
}
model Profile {
id String @id @default(uuid()) @db.Uuid
user User @relation(fields: [userId], references: [id])
userId String @unique @db.Uuid
firstName String
lastName String
}
Console log says everything is fine
✔ Generated Entity-relationship-diagram to ./prisma/ERD.png in 621ms
But no diagram is produced.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
No output will be generated because there is no Main module
ghc will assume that the main is located in a module called Main (like the compiler says). ghc however has an option -main-is...
Read more >Note: No relevant classes found. No output generated ... - GitLab
building openmw master shows several Note: No relevant classes found. No output generated messages. (partial log output at bottom of post).
Read more >moc cpp generation fails with "No relevant classes ... - Qt Forum
No output generated." I have a class D11 that inherits from class B1 that inherits QObject. B1 has declared Q_OBJECT, and so does...
Read more >000117: Warning empty output generated.—ArcGIS Pro
The output created or modified has no features. For instance, running the Delete Features or Delete Rows tool on a feature class or...
Read more >Thread: cell.h No relevant classes found. No output generated
cell.h No relevant classes found. No output generated. Hi to all, I've centos6.4 in VM AND Qt5.2.1 I am building a project given...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue there
But no file to be found anywhere
prisma@3.6.x
prisma-erd-generator@0.6.1
And similar kind of issue, a node_modules path issue, because I’m using
workspaces
in this project (but I guess any DnD or modern npm replacement could cause similar issues)Dirty workaround
Change the path to match the current project folder structure
Better workaround
Also install the
mermaid-cli
as a dev dependency, to make sure it’s available in the local./node_modules/.bin/
I confirm, now it throw an error if mermaid-cli is not available locally 👍
Now I get new trouble in docker deployment, if I try to run
prisma generate
it explode because the path to the documentation does not exist 😄 But that’s another issueSadly I don’t see any argument in
prisma generate
, to run only certain generators