When you run the port interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> enable command to configure stack member ports, if the message "Error: Configuration failed. Please check the type of optical module(s) on interface XGigabitEthernetx/x/x/x" is displayed, the type of the optical module installed on the port is not supported by the port.
Run the display transceiver command to check the value of the Transceiver Type field in the command output. This field indicates whether the rate of the optical module installed on the port matches the port rate. For example, if a non-XGE optical module is installed on an XGE port, the rate of the optical module does not match the port rate. In this case, you must remove the optical module before configuring stack ports.