vue day01 error
C:\Users\little_shark\Desktop\project-SPH\app>npm run serve> app@0.1.0 serve> vue-cli-service serveINFOStarting development server...ERRORFailed to compile with 1 error.
·
C:\Users\little_shark\Desktop\project-SPH\app>npm run serve
> app@0.1.0 serve
> vue-cli-service serve
INFO Starting development server...
ERROR Failed to compile with 1 error 10:15:03
C:\Users\little_shark\Desktop\project-SPH\app\src\App.vue
1:1 error The template requires child element vue/valid-template-root
✖ 1 problem (1 error, 0 warnings)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in
C:\Users\little_shark\Desktop\project-SPH\app\src\App.vue
1:1 error The template requires child element vue/valid-template-root
✖ 1 problem (1 error, 0 warnings)
webpack compiled with 1 error
1.vue必须要有一个根节点,在<template></template>里面添加一对<div>标签就好了!!!
我还没有弄明白自动生成,有懂的朋友们可以教我一下
还有在运行的时候一定要在项目里面,不要在最外面的文件夹!!会找不到package.json的!!!
2.浏览器自动打开 vue的webpack5自动打开浏览器跳转到0.0.0.0:8080问题 :
别再给我降低版本了!!!!我们要say漏!!!!
vue的webpack5自动打开浏览器跳转到0.0.0.0:8080_三秋末了的博客-CSDN博客_webpack5 自动打开浏览器
更多推荐
已为社区贡献1条内容
所有评论(0)