typeerror: class extends value undefined is not a constructor or null in react code example Example: class extends value undefined is not a constructor or null nestjs yarn add react