Open JigneshPatel04 opened 6 years ago
Do you already use the new RxJsVersion setting?
Strange, i upgraded a project already to the latest version and didn't encounter such problems... do you have a fix for this? Can you debug your generated code?
In link aspnetboilerplate/abp-ng2-module#30 (comment) I have to show my problem. I didn't get result proper. In my service.proxies.ts file if (status === 200) { const _responseText = response.text(); let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result200 = resultData200 ? IsTenantAvailableOutput.fromJS(resultData200) : new IsTenantAvailableOutput(); return Observable.of(result200); }
this worked properly without upgrade angular, rxjs, abp module,... Now I have an upgrade project then I got data from resultData200.result, so I got undefined properties of result200 and me didn't login in a project.
Is this still an issue? Have you tried to set TypeScriptVersion to eg 2.8?
@JigneshPatel04 were you able to solve this issue? I'm having the same problem.
Is this still an issue? Have you tried to set TypeScriptVersion to eg 2.8?
I tried 2.8 and 2.9. They don't solve the issue.
Here are the current package versions: using ng -v
command
@angular-devkit/architect 0.6.8 @angular-devkit/build-angular 0.6.8 @angular-devkit/build-optimizer 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.8.5 @angular/cli 6.2.5 @ngtools/webpack 6.0.8 @schematics/angular 0.8.5 @schematics/update 0.8.5 rxjs 6.3.3 typescript 2.8.4 webpack 4.20.2`
And here is my swaggerToTypeScriptClient in the service.config.nswag
"swaggerToTypeScriptClient": { "className": "{controller}ServiceProxy", "moduleName": "", "namespace": "", "typeScriptVersion": 2.8, "template": "Angular", "promiseType": "Promise", "httpClass": "HttpClient", "useSingletonProvider": false, "injectionTokenType": "InjectionToken", "rxJsVersion": 6.0, "dateTimeType": "MomentJS", "nullValue": "Undefined", "generateClientClasses": true, "generateClientInterfaces": false, "generateOptionalParameters": false, "exportTypes": true, "wrapDtoExceptions": false, "clientBaseClass": null, "wrapResponses": false, "wrapResponseMethods": [], "generateResponseClasses": true, "responseClass": "SwaggerResponse", "protectedMethods": [], "configurationClass": null, "useTransformOptionsMethod": false, "useTransformResultMethod": false, "generateDtoTypes": true, "operationGenerationMode": "MultipleClientsFromPathSegments", "markOptionalProperties": false, "generateCloneMethod": false, "typeStyle": "Class", "classTypes": [], "extendedClasses": [], "extensionCode": "service.extensions.ts", "generateDefaultValues": true, "excludedTypeNames": [], "handleReferences": false, "generateConstructorInterface": true, "convertConstructorInterfaceData": false, "importRequiredTypes": true, "useGetBaseUrlMethod": false, "baseUrlTokenName": "API_BASE_URL", "queryNullValue": "", "templateDirectory": null, "typeNameGeneratorType": null, "propertyNameGeneratorType": null, "enumNameGeneratorType": null, "serviceHost": null, "serviceSchemes": null, "output": "../src/shared/service-proxies/service-proxies.ts" }
I have used angular 6 + Rxjs 6 + ABP in my project. I have updated angular, ABP and Rxjs related model in my project. I used "nswag": "11.12.10" package.
Before upgrade worked properly log in and project. but I have an upgrade then login is not working properly because I got a response is not proper.
before upgrade service.proxies.ts.
after upgrade
got _body is not in proper format. Know?