Add the following code to tsconfig.json or jsconfig.json in the root directory of the project. Create a new one without these two files
//===========Compiler ide prompt...
"baseUrl": "./",
"paths": {
"/@/*": ["./src/*"]
},
//===========Compiler ide prompt...
Read More:
- How to Solve Vite package error
- Solving routing errors by rewriting Vue push method
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] VS Code Error: Vetur can‘t find ‘tsconfig.json‘ or ‘jsconfig.json‘
- [Solved] vite package Error: globalThis is not defined
- [Solved] Some chunks are bigger warning on vite packaging
- After Vite starts, it will prompt “network: use ` — host ` to expose”, and the service cannot be accessed through network IP
- [Solved] Vite packing error: some chunks are larger than 500kb after minification
- [Solved] vite2+vue3 jsx Error: React is not defined
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] arco design vite-plugin-style-import Load menu-item error: Internal server error…
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…
- [Solved] Temporary error: Error: spawn E:\vue3-vite\my-app\node_modules\esbuild\esbuild.exe ENOENT
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined error
- JS getting ${pageContext.request.contextPath} Get the root path of the project
- Method of adding operation button for each line of data in DataGrid of easyUI
- The solution of calling$. Ajax successfully but the success method does not respond
- How to Fix “HTTP 405 method not allowed” Error
- IDEA Project let Report Error [How to Solve]