JavaScript/Angular-Error (2) 썸네일형 리스트형 [Angular 에러] formGroup expects a FormGroup instance. Please pass one in. 원인 및 해결 해당 에러가 발생할 경우 1. html 에서 form group 을 form 으로 선언 하지 않은 경우 2. ts 에서 group 을 form 으로 선언 하지 않은 경우 원인 : registerForm: FormGroup; registerPayload: RegisterPayload; constructor( private formBuilder: FormBuilder, private authService: AuthService ) { this.formBuilder.group({ username: "", email: "", password: "", confirmPassword: "" }); 내 코드의 경우 form 을 선언했지만, constructor 의 group 을 form 으로 넘기지 않았다. 해결 : .. [Angular 에러] Error: StaticInjectorError(AppModule)[HttpClient] 원인 및 해결 해당 에러는 appModule 에 HttpClientModule 을 선언하지 않아서 그런 것 입니다. app.module.ts 에 import { HttpClientModule } from '@angular/common/http'; import 하시고 imports: 에 HttpClientModule 을 추가하세요. 이전 1 다음