She must have been smoking some really good stuff.

Sen. Kamala Harris got rapped for getting her rap eras mixed up when she told radio interviewers that she listened to Snoop Dogg and Tupac Shakur while smoking pot in college — even though she graduated in 1986, years before they hit the scene.

The Democratic presidential contender made the totally wack goof-up Monday on the “The Breakfast Club,” a nationally syndicated morning show, after she was asked if she had ever smoked marijuana.

“I have. And I inhaled. I did inhale,” Harris said during a conversation about legalizing marijuana. “It was a joint.”

Asked about the time period — if she had gotten high in college — she replied, “yes.”

A few minutes later, the hosts inquired about what type of music she likes and what she was listening to while stoned in college.

“What was you listening to when you was high? What was on? What song was on?” the host, Charlamagne tha God, said.

Another host suggested, “Snoop?”

“Definitely Snoop, Tupac for sure,” she said.

But Harris graduated from Howard University in 1986 — when RUN DMC ruled the rap charts — years before Snoop Dog’s first album, “Doggystyle,” dropped in 1993. And Tupac’s debut album, “2Pacalypse Now,” was released in 1991. Neither had put out any public music in the 1980s.

At the time the two rap legends had burst onto the scene in the early ’90s, Harris was working as a deputy district attorney in Alameda County, California.

A rep for Harris on Tuesday called the comment a miscommunication. When Harris replied “Definitely Snoop,” she had been responding to the question of what music she listens to now, said Kirsten Allen, a spokeswoman for Harris.