Closed theRocket closed 5 years ago
@theRocket A sub-app can only be added to an existing "workspace". So you'll need to first nest new
an app, then cd
to that app folder, then run nest g app
in that folder.
If that's what you already did (which isn't what you described above), then the next possibility is that the package.json is malformed. Take a look at line 12 of the package.json to see.
I am working within an existing app. It is a fork of this project: https://github.com/fivethree-team/nestjs-prisma-starter/blob/master/package.json When I clone that repo again and run the command within the directory, 'nest g app' worked. So you are right, there must be something wrong with my package.json file.
I'm submitting a...
Current behavior
Try to generate a sub-app (in this case, with --dry-run option but it also happens without) and receive the following error:
Expected behavior
Files to be generated and code to be changed is described in some readable form in command output.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
I want to use the command to generate a sub-app.
Environment