ERROR Error: Uncaught (in promise): Error: Can't resolve all parameters for LoginPage: (?, [object Object])

Good evening, thank you for helping me find a solution to this problem
ERROR Error: Uncaught (in promise): Error: Can’t resolve all parameters for LoginPage: (?, [object Object]).

login.page.ts

import { Component, OnInit } from ‘@angular/core’;

@Component({
selector: ‘app-login’,
templateUrl: ‘./login.page.html’,
styleUrls: [’./login.page.scss’],
})
export class LoginPage implements OnInit {

constructor(private authService:AuthenticationService, private router:Router) { }

ngOnInit() {
}

onLogin(user){
let res = this.authService.login(user.username,user.password);
if(res==true) {
this.router.navigateByUrl(‘menu’);
}else{
this.router.navigateByUrl(‘login’);
}
}

}

authentification.service.ts

import { Injectable } from ‘@angular/core’;

@Injectable({
providedIn: ‘root’
})
export class AuthentificationService {
public authenticated:boolean;
constructor() { }

public login(username:string, password:string){
if(username==“admin” && password==“1234”){
this.authenticated=true;
}
else{
this.authenticated=false;
}
return this.authenticated;
}
}