使用TypeScript时遇到了编译器错误。
在文件中,一个导入语句导致了错误:
import { type MenuUnstyledContextType } from '../MenuUnstyled';
尽管在TypeScript 3.8中是有效的,但该应用程序使用的是typescript ^4.3.5和@babel/preset-typescript ^7.14.5。
typescript ^4.3.5
@babel/preset-typescript ^7.14.5
有任何解决方法吗?
用户名或电子邮箱地址
密码