Change deprecated .from to .resolve