Call resolve when there is no error in compile