require resolve/class when requiring resolve