It's because of your IDE! Make sure you have added automatic imports such as

import { clearInterval } from 'timers'; 

If so, remove them.

相关文章: