Javon Hargrave, last seen celebrating a sack against the Los Angeles Rams Sunday before departing with an injury, will need surgery for a torn triceps and will miss the rest of the season.

It was the latest in an injury wave that’s hit the 49ers, who are 1-2 after a 27-24 road loss to the Rams.

“It’s a big one,” coach Kyle Shanahan told local writers Monday on a conference call. “I thought he had his best game yesterday, thought he was a huge factor. Affected the quarterback in that game. It’s a big loss. He’s one of our better players. He was going in the right direction and he was going to have a big year.”

Shanahan said there’s a remote chance Hargrave could return post-surgery if the 49ers went deep into the playoffs, but it’s more likely he won’t play again until 2025.

“We’re recommending surgery and when you get surgery that’s a few months at least,” Shanahan said. “If there was a chance, it would have to be late in the playoffs.”

Hargrave was the 49ers’ prize free agent signing before the 2023 season, signing a four-year contract worth a maximum of $84 million after starring for the Philadelphia Eagles. He is the latest in an injury wave that includes 2023 NFL Offensive Player of the Year Christian McCaffrey (Achilles tendinitis), wide receiver Deebo Samuel (calf strain) and tight end George Kittle (hamstring).

McCaffrey, who has at least two more games on injured reserve, has left the country to seek treatment, Shanahan confirmed.

Photos that circulated social media over the weekend showed McCaffrey boarding a plane for Germany.

“I’m not sure what doctor it is,” Shanahan said. “I know he’s going to a specialist that can help him with his Achilles process and he’s doing that over the next few days and hopefully it will help.”

In yet more injury news, Shanahan said Brock Purdy, a bright spot in the loss, has a sore back and is day-to-day. He underwent an MRI that came back clean, Shanahan said.

The flood of injuries is in contrast to last season, when the 49ers’ star players for the most part went wire to wire.

“I think last year with some of our main guys we were very fortunate,” Shanahan said. “This year it’s been totally different to start out, so that’s been real tough. I’d like to stay positive with it in that all of ’em are eventually going to come back, but that probably changed with Hargrave today so that was a tough pill to swallow there.

“We definitely haven’t had the luck we had last year.”