Atividades de "masum.ulu"

Hi again,

Sorry for late reply, I'll try to re-produce and reply in the day

I'm sorry, it should be the yarn cache clean try this please after that re-try the steps start with 4

Hello Linch,

I've refunded your credit, We solved this problem with 7.3.0-rc.1 version, PR. When you update project It'll fixed. For workaround you can use custom error handler for 400 response after the update project you can remove safely

Example

//error.handler.ts

import { Injector } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { LocalizationParam } from '@abp/ng.core';
import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared';

export function handleHttpErrors(injector: Injector, httpError: HttpErrorResponse) {
  if (httpError?.status === 400) {
    return showError(
      injector,
      httpError.error.error.validationErrors[0].message,
      httpError.error.error.message,
    );
  }

  return throwError(() => httpError);
}

function showError(
  injector: Injector,
  message: LocalizationParam,
  title: LocalizationParam,
): Observable<Confirmation.Status> {
  const confirmationService = injector.get(ConfirmationService);
  return confirmationService.error(message, title, {
    hideCancelBtn: true,
    yesText: 'AbpAccount::Close',
  });
}
//app.module.ts

import {HTTP_ERROR_HANDLER} from '@abp/ng.theme.shared';
import {handleHttpErrors} from './err.handler';

@NgModule({
  declarations: [
   //declarations
  ],
  imports: [
   //Imports
  ],
  providers: [
   //Other providers,
    { provide: HTTP_ERROR_HANDLER, useValue: handleHttpErrors },
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}

Output

Hello,

Can you try to steps on the following

  • Open CMD anywhere
  • Run command: yarn cache clear
  • Go to angular folder
  • Remove .angular | node_modules | yarn.lock files the existing folders
  • Run command: yarn install
  • Run command: yarn start

Hi Mustafa,

I'll try again create project and I'll add ignore file to my project. Meanwhile can you try to create same project with your any teammate from scratch and try to re-produce same error again ? Maybe it's specifically happens in your PC ? It's not that clear issue unfortunately I'll try that again also as an alternative can you try create with CLI not with suite ?

Responder

Thanks. When will the next version be released?

We'll publish commercial preview today but this issue will be fix FINAL milestone

mail address. You

Hi again mustafa, I'm sorry I wrote wrong my mail, this is the correct one: masum.ulu@volosoft.com can you please send again the mail ? :)

Hello again Mustafa, Can you please share your .gitignore file also, can you please check the is there any other this file.

Thank you

Responder

Hello, Same question is also opened here we'll fix this with the next version I'm Refunded your credit

Best regards

Hello, I was able to re-produce I'll create an issue for this I Refunded your credit thanks 🙂

Mostrando 141 até 150 de 195 registros
Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11