when driving, the automatic door locks go up and down and the inside lights turn on and off over and over again.
electrical problem on 1997 Dodge Caravan
First item I would have checked are your Door Ajar switches. You have one one each front door, one for each sliding door and one incorpcorated into the latch assembly on the rear lift gate. The one that is most likely the problem is the drivers door ajar switch. The sliding door ajar switched should be suspected especially if they are slammed shut often.