Bonsoir,

J'ai ce message d'erreur, pouvez vous me dire ou est le problème car tous mes import sont bon je pense ?

ERROR in HostResourceResolver: could not resolve ./signup.component.css in context of /home/cdevl/bookshelves/src/app/auth/signup/signup.component.ts)
mon fichier signup.component.ts :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { AuthService } from '../../services/auth.service';
import { Router } from '@angular/router';
 
@Component({
  selector: 'app-signup',
  templateUrl: './signup.component.html',
  styleUrls: ['./signup.component.css']
})
export class SignupComponent implements OnInit {
 
  signupForm: FormGroup;
  errorMessage: string;
 
  constructor(private formBuilder: FormBuilder,
              private authService: AuthService,
              private router: Router) { }
 
  ngOnInit() {
    this.initForm();
  }
 
  initForm() {
    this.signupForm = this.formBuilder.group({
      email: ['', [Validators.required, Validators.email]],
      password: ['', [Validators.required, Validators.pattern(/[0-9a-zA-Z]{6,}/)]]
    });
  }
 
  onSubmit() {
    const email = this.signupForm.get('email').value;
    const password = this.signupForm.get('password').value;
 
    this.authService.createNewUser(email, password).then(
      onfulfilled: () => {
        this.router.navigate(['/books']);
      },
      (error) => {
        this.errorMessage = error;
      }
    );
  }
}