We are using typescript and exporting one class as following (we are using nuxt and class style component if this relates to webpack issue).
export class ApiService {
static apiHost = '/';
}
When we try to import it as following, it gives ApiService
as undefined
and so gives error on apiHost
access as ApiService
gets undefined
.
import { ApiService } from '../services/api-service';