Try to migrate to typescript compiler