There’s been a great disturbance in the Force.

The highly anticipated “Star Wars: The Rise Of Skywalker” film was nearly spoiled terribly after an actor’s sloppy actions resulted in the script being uploaded on eBay, director J.J. Abrams said.

The cinematic calamity occurred when one of the space opera’s stars absent-mindedly left the script unattended in their hotel, the Los Angeles Times reported.

Abrams said the actor “left it [the script] under their bed and it was found by someone who was cleaning their room.” He added that it “was given to someone else — who then went to sell it on eBay.”

Abrams won’t mention the party responsible for the leak, although it’s suspected that they had to be a top star — i.e. Adam Driver or Daisy Ridley — because supporting actors weren’t provided scripts, according to Entertainment Weekly.

Fortunately, Disney was able to divert disaster a la Princess Leia intercepting the plans to the Death Star. A quick-thinking staffer identified the script on the online auction site, and bought it before it could be sold to someone else — and likely disseminated across the web.

The spillage was especially infuriating considering how stringent Disney has been about guarding plot details.

“They were really nervous about anything getting out,” Abrams told “Good Morning America” Monday. “So they had only a handful of scripts, and they were printed on crazy, uncopy-able paper.”

“The Rise of Skywalker” hits theaters Dec. 20.