当前位置:网站首页>[plugin:vite:import-analysis]Failed to resolve import “@/“ from ““.Does the file exist
[plugin:vite:import-analysis]Failed to resolve import “@/“ from ““.Does the file exist
2022-06-23 09:29:00 【Feng ruye】
Screenshot of error reporting :
Error reason : Not configured @ The symbol specifies the path alias for , Lead to direct use
Solution :
Install first path modular
npm install --save-dev @types/node
modify vite.config.js file
import {
defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
}
})
Rerun the project
npm run dev
边栏推荐
- 基于mediapipe的手势数字识别
- ionic5錶單輸入框和單選按鈕
- Custom tag - JSP tag Foundation
- Redis learning notes - data type: ordered set (Zset)
- cooding代码库的使用笔记
- Leetcode topic analysis contains duplicate III
- 微信小程序:点击按钮频繁切换,重叠自定义markers,但是值不改变
- 一个采用直接映射方式的32KB缓存......存储器课后习题
- [GYCTF2020]Blacklist
- Quartz Crystal Drive Level Calculation
猜你喜欢

Redis学习笔记—客户端通讯协议RESP
【NanoPi2试用体验】裸机第一步
![[MRCTF2020]Ez_ bypass](/img/cd/bd6fe5dfc3f1942a9959a9dab9e7e0.png)
[MRCTF2020]Ez_ bypass

设CPU有16根地址线,8根数据线,并用MREQ作为访存控制线号......存储器与CPU的连接

UEFI 学习3.6 - ARM QEMU上的ACPI表

Correspondence between three-tier architecture and SSM

General paging (1)

微信小程序:点击按钮频繁切换,重叠自定义markers,但是值不改变

UEFI learning 3.6 - ACPI table on ARM QEMU

2022 Gdevops全球敏捷运维峰会-广州站精华回放(附ppt下载)
随机推荐
UEFI 源码学习4.1 - PciHostBridgeDxe
[SUCTF 2019]CheckIn
Mysql 数据库入门总结
An idea of using keep alive to cache data in vue3 form pages
Redis learning notes - data type: Set
ARM中常见的英文解释
Leetcode topic analysis contains duplicate II
什么是BFC?BFC可以解决什么问题
Correspondence between three-tier architecture and SSM
ionic5錶單輸入框和單選按鈕
Best time to buy and sell stock II
Redis学习笔记—Pipeline
UCOSII (learning notes)
Best time to buy and sell stock
RGB与CMYK颜色模式
三层架构与SSM之间的对应关系
[GXYCTF2019]BabyUpload
Redis learning notes - redis cli explanation
[wangdingbei 2020 Qinglong formation]areuserialz
Subscript operator of map