Uncaught TypeError: timeout.close is not a function. when try to use clearInterval

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

import { clearInterval } from 'timers'; 

If so, remove them.

原文地址:https://www.cnblogs.com/begin256/p/10025037.html