本文主要是介绍[vite] Internal server error: Failed to resolve import “@api/disaster/riskMonitoring“ from “src\serv,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
[vite] Internal server error: Failed to resolve import “@api/disaster/riskMonitoring” from “src\service\index.ts”. Does the file exist?
问题描述:在引入方法时报错
原因:在vite.config.ts中没有定义@api
解决方法
找对正确的位置
(备注:api文件在src下)
这篇关于[vite] Internal server error: Failed to resolve import “@api/disaster/riskMonitoring“ from “src\serv的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!