Arduino uno + cnc shield v3 + Stepper Motor Driver A4988 + AccelStepper?
Manually set the ENABLE pins as OUTPUTs, i.e. add in the setup() function:

pinMode(MOTOR_A_ENABLE_PIN, OUTPUT);
pinMode(MOTOR_B_ENABLE_PIN, OUTPUT);