jsx文件中 import { XXX } from '@/utils/utils' 报 找不到模块“@/utils/utils”或其相应的类型声明
创建文件tsconfig.json
{ "compilerOptions": { "jsx": "react", "emitDecoratorMetadata": true, "experimentalDecorators": true, "baseUrl": ".", "paths": { "@/*": ["./src/*"] } }, "allowJs": true }
博客园作者:herry菌朋友,看到这里,关注作者的公众号吧,不漏掉更新哦