Argument of type 'string[]' is not assignable to parameter of type 'string

Hello I need to navigate to another page using angular routing but I’m facing a typescript issue.
Here what I have:

import { Component } from '@angular/core';
import { Router } from '@angular/router';

  selector: 'app-home',
  templateUrl: '',
  styleUrls: [''],
export class HomePage {
  constructor(private router: Router) {
    openWelcomePage() {

And the output is:

I tried unistalling typescript and installing the latest version, but didn’t worked.

its late, so only a quick look.
Is methode openWelcomePage() inside constructor? If yes, move it outside of constructor and call it anywhere you want.

Late regards, anna-liebt

Oh yes you was right.I was inside constructor and now is working fine.