There are a good number of reasons for it shutting off. the common reason is the magnetic pickup in the distibutor. If it is running a little rough it could also be the ignition module which is on the firewall agains the drivers in fender. It could also be a combination of both.
Ford f350 super duty shut off and lose power while driving
car starts but shut off while driving
Sounds like idle is too low or may need tune up
Out of gas
Probably the alternator.
Possible a bad or corroded ground cable .
Peeing off the side
no gas
There are several complications that can cause a 1999 Dodge Caravan to shut off while driving. Most common issues include ignition problems or fuel delivery problem.
If you lost power while driving it could be the alternator. Its not charging your batter anymore
Crank trigger
1998 that when