mean-expert-official / loopback-sdk-builder

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

HttpParameterCodec not being imported on base.service.ts #592

Closed leograde closed 6 years ago

leograde commented 6 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:

After running ./node_modules/.bin/lb-sdk server/server app/shared/sdk and importing the SDK into Angular, I noticed that HttpParameterCodec wasn't being imported in services/core/base.service.ts and that was causing an error since the Class CustomQueryEncoderHelper implements HttpParameterCodec.

All I had to do to fix it was to import HttpParameterCodec from @angular/common/http in the same file - services/core/base.service.ts.

jonathan-casarrubias commented 6 years ago

@leograde please verify if version 2.2.7 fixes this problem.

Cheers Jon

leograde commented 6 years ago

@jonathan-casarrubias , Awesome! Thank you!

leograde commented 6 years ago

Version 2.2.7 fixes the issue.