The Starship experienced a “major anomaly” before starting its 10th flight test. Elon Musk’s giant moon and Mars rocket has a mixed record of success.

SpaceX said the Starship rocket experienced a “major anomaly” during preparations for its 10th flight test at Starbase, Texas.LabPadre, via Storyful

A SpaceX Starship rocket exploded in a huge fireball on a test stand late Wednesday during preparations for its next launch at the Elon Musk-led company’s base in South Texas.

The upper stage Starship vehicle experienced a “major anomaly” before starting a test fire at around 11 p.m. local time, SpaceX said on social media.

All personnel were safe and there were no hazards to the residents of nearby communities, SpaceX, a commercial space launch company, said. It warned people to not approach the area while it was conducting safety operations in conjunction with local officials at the test site and the surrounding area.

The Federal Aviation Administration, which issues commercial space licenses, did not immediately respond to a request for comment made outside business hours.

The largest and most powerful rocket ever built, Starship is central to Mr. Musk’s dream of one day sending humans to Mars. It has had a mixed record so far, however, with multiple setbacks. Some test flights have ended in dramatic explosions.

The last Starship test mission in May sent the rocket’s upper stage to space but a propellant leak caused the vehicle to spin out of control and break up, leaving debris falling into the Indian Ocean.

Starship’s seventh and eighth tests previously ended with the rockets exploding.

The rockets are launched from SpaceX’s complex in the recently incorporated town of Starbase in Cameron County, Texas.

The Cameron County Precinct 1 Constable’s Office said on social media that the rocket had exploded during a routine static fire test, and that no injuries were reported. It said that an investigation into the explosion was underway.

A live video feed of the test by NASASpaceflight, an independent space media company that has cameras trained the SpaceX complex, showed an explosion so bright that it momentarily filled the entire screen in white. After that, a large fire was seen at the site. The feed showed a smaller fire burning into the early hours of Thursday.