A person died after a rechargeable battery sparked a fire in an apartment in San Jose Friday morning, according to the fire department.  

Authorities said crews responded to a fire at an apartment on Norwalk Drive at around 8:30 a.m. Officials said two people were inside the apartment when the battery in an e-bike began sparking and smoking, eventually igniting a fire.

One person went outside while the other tried to fight the fire inside the apartment, according to officials.

The fire department said that person made it out as well moments later but collapsed. A neighbor started CPR before crews arrived and the person was taken to the hospital where they later died, according to authorities.

Following the incident, the fire department shared the following recommendations in case a battery starts smoking or catches fire:

• Get out immediately
• Close doors behind you if you can
• Do NOT try to fight the fire
• Call 911 once you’re safe