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 { setInterval, clearTimeout } from "timers";

If so, remove them.

原文地址:https://www.cnblogs.com/gqx-html/p/13782877.html