all the warning lights are coming on the lights are dimming yet it cranks jus fine is this electrical or could it be some otehr problem?

Make, model, year, miles and the age of battery would be helpful.

Have your battery and charging systme checked at the local parts store.

Yes, it’s an electrical problem. A wire for the everything but the starter and alternator attaches to the big cable for the starter. Somewhere, this connection is not so good.

Yup. Sounds like an alternator with a bad diode. This allows a nasty A/C ripple into the electrical system and the electronics go nuts…

96 chevy cavalier z24 the battery is only about 1 1/2 yrs old