How to resolve ' error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.'?
Try by removing * as
. You are exporting Auth
as default. Default export property we import directly without any *
or {}
.
import Auth from '../Auth/Auth';..const auth = new Auth();