To declare an untyped array, use any[] , not Array :
public songPaths: any[] = []
You should specify the type if possible, for example:
public songPaths: string[] = []
You do not use Object as the default value. Object is the type, and new Audio() is the default value. If possible, the type should be the actual type that you want to use.
Guffa source share