mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

React SDK and rxjs version problem #632

Open Amenocy opened 5 years ago

Amenocy commented 5 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

Please add a description for your issue:

in react SDK output code is like this :

 return from(request)
        .map((res) => res.data)
        .catch((e) => errorHandler.handleError(e));

and it is not working with rxjs 5.6 and 6.3 Uncaught TypeError: (0 , _rxjs.from)(...).map is not a function but in angular code it uses pipes .

Amenocy commented 5 years ago

problem for base services fixed in this commit : https://github.com/InovaMind/loopback-sdk-builder/commit/0eb195b84abb2eabc40088ecc07c66a5e8427877

but problem already exist for custom model services (lib/templates/shared/services/custom/service.ejs). please merge that and fix for custom models.