Confused residents took to Twitter to share screenshots of the message that interrupted programming.

“Emergency Alert System. A civil authority has issued an IMMEDIATE EVACUATION NOTICE for the following counties or areas,” the message said.

The list included Los Angeles and Ventura, California, as well as Eastern North Pacific Ocean, and Port Conception to Guadalupe Island.

It was not clear how many people received the alert. But the Ventura Country Sheriff’s Office later wrote on Twitter that it had been sent in error.

“The evacuation notice that was received by some Ventura County Residents on television was sent in error by the County of Los Angeles,” the sheriff’s office wrote. “There is no threat to Ventura County at this time and no need for residents to evacuate.”

The erroneous alert came as wildfires erupted in California on Wednesday, prompting evacuations, as the state sweltered under a heat wave that is forecast to continue through Labor Day.

An excessive heat warning is in effect across much of Southern California, including Los Angeles County.

Some concerned California residents took to social media after seeing the erroneous alert.

“Can someone at @notifyla either confirm that there is a huge evacuation notice (and why!), or let everyone know if the message was supposed to just be for the area near Castaic where there are fires?” one person wrote on Twitter.

“Lots of people freaking out over this vague yet alarming TV alert.”

Another wrote: “That was scary! I called the Sheriff’s Office to see what was going on. LA better get it together.”

Th Los Angles Emergency Management Department has been contacted for comment.

It comes after a false alert warning of an incoming ballistic missile attack sparked widespread panic in Hawaii in 2018.

The alert was issued on television, radio and sent to cellphones in the state in the morning on January 13 that year.

“Ballistic missile threat inbound to Hawaii. Seek immediate shelter. This is not a drill,” the phone alert said.

A second alert notifying residents of the error didn’t go out until almost 40 minutes after the first.

The Hawaii Emergency Management Agency employee who sent the alert was fired, and later said in an interview that he was “devastated” by what had happened.

He said he didn’t hear the announcement at the beginning of a drill that said it was an “exercise” and “was convinced that it was real.”