loopback-sdk-angular icon indicating copy to clipboard operation
loopback-sdk-angular copied to clipboard

not compatible with loopback-boot@3

Open ernie58 opened this issue 8 years ago • 2 comments

Description/Steps to reproduce

Install a LB 3 application with loopback boot 3. Add a lot of models and boot scripts run lb-ng server/server.js client/js/services/lb-services.js

Expected result

A client side representation of all the models in lb-services.js

Actual result is an lb-services.js file without any model

Additional information

I'm guessing it has something to do with loopback-boot3 booting async, and the sdk not waiting for the configs and models till their fully parsed?

ernie58 avatar Jul 11 '17 11:07 ernie58

Were you able to get it to work? I'm having a similar problem.

fmtoffolo avatar Sep 09 '17 04:09 fmtoffolo

Hello, thank you for reporting the issue. Is it possible that loopback-boot@3 is not setting booting property and emitting booted event? Here is the code responsible for loading the app from a file and running the generator:

https://github.com/strongloop/loopback-sdk-angular-cli/blob/4360183c7541336608315e38f054451f1c104960/bin/lb-ng.js#L36-L44

I am afraid I don't have time to investigate this myself, but I am happy to help you if you decide to contribute a fix for this issue yourself.

bajtos avatar Dec 15 '17 13:12 bajtos