Ohm’s law doesn’t apply to semiconducting devices because they are nonlinear devices. This means that the ratio of voltage to current doesn’t remain constant for variations in voltage.