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
"redwood generate" is failing for SDL and service #207
Comments
Thanks again @chris-hailstorm, I'm taking a look at this. |
I realize |
There might be more going on here @chris-hailstorm but do try upgrading the @redwoodjs packages to v0.1 https://github.com/redwoodjs/redwood/releases/tag/v0.1.0 We’ve been having a lot of challenges scaffold+sdl that were related to @prisma/sdk bugs. Again, not sure if what you found will go away as easily as upgrading, but it would help to know if you have a chance. |
The complaint about |
I haven't validated what it's generating, but the gen cycle itself runs successfully. Thanks! |
Sounds like this is good to go? Closing now, but reopen if stuff is still busted! |
SUMMARY
After a successful
db save
anddb up
, thegenerate (scaffold | sdl | service)
all fail.ENVIRONMENT
alpha-33
OBSERVATION
I added custom models to
prisma.schema
like this:Then ran
yarn rw db save
-- no problem -- andyarn rw db up
-- no problem.Attempted a "generate scaffold" run, got this error:
Realizing "generate scaffold" is kind of a convenience wrapper for pages, SDL and services, I attempted each generate command separately:
As you can see, the page generation succeeded; SDL and service generation failed.
SDL: no failure details shown.
Service: says "crud is not defined".
EXPERIMENT
I took a guess the generate function could be confused about two different relations between the same pairs of objects (although that's a normal Prisma thing to do). As an experiment, I removed the fields and relations with the "owner" variation and tried again. Same problems.
The text was updated successfully, but these errors were encountered: