Whirlpool intermittent oven spark

Hi. I have a Whirlpool WFG374LVS2 that intermittently won’t spark at the oven. I have the bottom torn out and have watched it. The igniter has been replaced. I have gas and three clicks (I assume from the broiler which lights fine) but no spark. Would this point towards a spark module or gas valve. I took the burner out and checked the holes on it and they seem to be fine. Thanks.