
Vue+ElementUI前端框架问题
文章平均质量分 52
祈祷平安,加油
这个作者很懒,什么都没留下…
展开
-
Vue-amp制作地图基于高德地图
import mapAdd from './mapAdd.vue'//高德地图。然后在main.js入口文件中引入高德地图,分发出去,让每个组件都可以使用,原创 2024-04-14 12:03:04 · 585 阅读 · 0 评论 -
Vue文件上传前端代码
【代码】Vue文件上传代码。原创 2024-04-14 11:59:18 · 285 阅读 · 0 评论 -
ERROR Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the
at Object.<anonymous> (F:\highschool\Springboot+Element备课\vue-project2023-06-18\node_modules\vue-loader\dist\compiler.js:14:15)at Object.<anonymous> (F:\highschool\Springboot+Element备课\vue-project2023-06-18\node_modules\vue-loader\dist\index.js:29:20)原创 2023-07-13 18:27:21 · 844 阅读 · 0 评论 -
Cannot read properties of undefined (reading ‘config‘)
改成vue3的语法,import { createApp } from 'vue'而我的main.js中使这样引用的。是因为vue3中没有全局变量vue。原创 2023-07-11 20:59:04 · 2390 阅读 · 0 评论 -
export ‘createRouter‘ (imported as ‘createRouter‘) was not found in ‘vue-router‘
出现这样的报错是因为我们使用的vue-router包不对,我现在开发使用的是vue3,所以也要对应安装vue3版本的vue-router包。我们只需要将之前安装的 vue-router包卸载,然后重新安装vue3的vue-router包。// 卸载 vue2.x 的vue-router。// 安装 vue3 的vue-router。这样就可以解决啦,希望对大家有所帮助哦!原创 2023-07-11 20:58:21 · 847 阅读 · 0 评论 -
export ‘Vue‘ (imported as ‘Vue‘) was not found in ‘vue‘
经过百度,网上说我按照的cli版本过高,不过我的cli版本是5版本,确实过高。安装指定版本的cli。原创 2023-07-11 20:57:36 · 1163 阅读 · 0 评论 -
ERROR Error: Cannot find module ‘vue-template-compiler‘
F:\highschool\Springboot+Element备课\vue-project2023-06-18>npm install vue-template-compiler。意思是对于element-plus@2.3.7 需要 vue@3.2.0版本。npm install vue@3.2.0 --save 即可。这么大一长串错误代码,其实有一条比较关键的是。原创 2023-07-03 10:40:02 · 601 阅读 · 0 评论 -
export ‘default‘ (imported as ‘Vue‘) was not found in ‘vue‘
执行运行前端命令npm run serve,有如下提示。这样的提示如果不解决,好像也不行。它说核心vue没有找到。npm install vue@2.7.0 即可。vue 版本过高与其他版本不兼容,原创 2023-07-03 10:10:35 · 2748 阅读 · 0 评论 -
LayUI 编辑数据回显时Layer.open()报错/[object%20HTMLDivElement] 404 (Not Found)(anonymous)
代码当中content内容这个地方获取了dom元素,后来经过百度查找,发现type类型与cotent内容不一致,原来type:2,后来改成了1为页面层,重新运行项目。其实仔细读这个报错信息,是大概找不到html元素,编辑页面的回显数据显示成功。type:2 表示框架层。原创 2023-07-01 16:57:05 · 431 阅读 · 0 评论 -
VUE前端项目启动报错 1 error and 0 warnings potentially fixable with the `--fix` option.
因为Eslint语法检测很严格,所以缩进和空格等有问题也会报错,我们在vue.config.js文件中把它关闭了就行了lintOnSave: false。然后进行npm run serve 就可以成功运行了!原创 2023-06-22 17:48:28 · 671 阅读 · 0 评论 -
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
command "E:\\application\\nodejs\\node.exe" "F:\\亚联信息\\yalian_front_2021_11\\rakan\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "解决方案:安装以下依赖。原创 2023-06-20 11:29:51 · 895 阅读 · 0 评论 -
TypeError: item.plugins.unshift is not a function
TypeError: item.plugins.unshift is not a function原创 2023-06-19 16:48:20 · 333 阅读 · 0 评论