loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.97k stars 1.07k forks source link

lb4 controller fails with type BASIC #10494

Open aaqilniz opened 6 months ago

aaqilniz commented 6 months ago

Describe the bug

Running lb4 controller --controllerType="BASIC" --name=first-controller-ever fails with the following error:

Generation is aborted: No models found

This means the command is trying to find models - which only happens when the controller type is REST.

Logs

No change to package.json was detected. No package manager install will be executed.
Generation is aborted: No models found in /home/.../sample-app/src/models. Please visit http://loopback.io/doc/en/lb4/Controller-generator.html for information on how models are discovered.

Additional information

No response

Reproduction

Any basic loopback application

major-winter commented 3 months ago

Please assign it to me! I'm interested in this. This would be my first ever contribution to an open source project.

dhmlau commented 3 months ago

@major-winter, assigned! Thank you.