The California warehouse where at least 36 people died last week has been on regulators’ radar for almost two decades, according to government records.

A habitability investigation of the Oakland warehouse — which had been converted without permits into a hive-like artists’ collective known as the “Ghost Ship” — was still pending when the building erupted in flames Friday night during a regular weekly party, according to government records.

The records show that the city was looking into a complaint alleging an “illegal interior building structure” at the warehouse, a two-story, 86-year-old building taking up almost 10,000 square feet.

It’s just one of at least 10 complaints that have been recorded against the site, which includes an adjoining vacant lot, since the Ng family began purchasing the properties in 1997, according to Oakland and Alameda County records.

.

This 2014 photo shows the interior of a portion of the ‘Ghost Ship’ warehouse, taken while he was on a tour as a potential tenant of the Oakland, Calif., building. Ajesh Shah / AP