当前位置:网站首页>[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
边栏推荐
猜你喜欢

UEFI 源码学习4.1 - PciHostBridgeDxe

Aiming at the overseas pet market, "grasshand" has developed an intelligent tracking product independent of mobile phones | early project

Basic process of code scanning login

Sequential representation and implementation of sequencelist -- linear structure

Set the CPU to have 16 address lines and 8 data lines, and use mreq as the access control line number Connection between memory and CPU

What is BFC? What problems can BFC solve

16.系统启动流程
![[SUCTF 2019]CheckIn](/img/0e/75bb14e7a3e55ddc5126581a663bfb.png)
[SUCTF 2019]CheckIn
【NanoPi2试用体验】裸机第一步

UEFI source code learning 3.7 - norflashdxe
随机推荐
Combination sum of leetcode topic analysis
披萨订购设计----简单工厂模式
RGB与CMYK颜色模式
Lua的基本使用
UEFI source code learning 4.1 - pcihostbridgedxe
ThinkPHP 2. X/3.0 vulnerability recurrence
【CTF】 2018_rop
Redis学习笔记—Redis与Lua
【CTF】bjdctf_2020_babyrop
Jog运动模式
Simple student management
薄膜干涉数据处理
Redis学习笔记—事务
One of the 12 balls is different from the others. Provide a balance and find it three times
Redis学习笔记—redis-benchmark详解
[GXYCTF2019]BabyUpload
Subscript operator of map
ionic5錶單輸入框和單選按鈕
文件的打开新建与存储
An idea of using keep alive to cache data in vue3 form pages