TypeScript 中出现 TS2307: Cannot find module '@/assets/logo.png' or its corresponding type declarations. 的解决办法
使用方法
import { Card } from 'antd'
import logo from '@/assets/logo.png'
import './style.scss'
function Login() {
return (
<div className="login">
<Card className="login-container">
<img className="login-logo" src={logo} alt="" />
</Card>
</div>
)
}
export default Login