在vue项目中遇到如下错误

module "/Users/lin/Documents/web前端/webpack4-learning/webpack-vue/src/components/IsAsyncDemo.vue"
Already included file name '/Users/lin/Documents/web前端/webpack4-learning/webpack-vue/src/components/IsAsyncDemo.vue' differs from file name '/Users/lin/Documents/web前端/webpack4-learning/webpack-vue/src/components/isAsyncDemo.vue' only in casing.The file is in the program because:Imported via './IsAsyncDemo.vue' from file '/Users/lin/Documents/web前端/webpack4-learning/webpack-vue/src/components/AsyncComponent.vue'Root file specified for compilationRoot file specified for compilationVetur(1261)


一直在说文件名不同,已经包含的文件名导入文件名不同,为编译的根文件出错,换了一个组件就正常,所以尝试下改了文件名,可以了……


如果还不行,可以尝试下重启vscode,这个问题通常是 vscode 引起的,一般是你很快的重命名了自己的文件。

Vue报错:Root file specified for compilation Vetur(1261)相关推荐

  1. ubuntu makefile交叉编译报错:file not recognized: file format not recognized

    在linux ubuntu上编译netkit-ftp的时候报错:file not recognized: file format not recognized [root@ubuntu /arnold ...

  2. 【总结】ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase

    ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase to a ...

  3. centos 7.2执行yum -y install报错Metadata file does not match checksum

    分析结论 1,Metadata file does not match checksum报错在于元文件的校验值与元文件不匹配 2,元数据是指 mnt/repodata/436345f4b666f0a4 ...

  4. adb push报错‘read-only file system‘

    使用bat脚本,执行对android设备文件的覆盖 @echo off adb root adb push hosts /etc/ pause adb已经获取到root权限,当尝试替换/etc/hos ...

  5. Vue报错:Error while running task D:\vue\forum:build with message‘spawn vue-cli-service ENOENT‘

    Vue报错:Error while running task D:\vue\vueforum\forum:build with message'spawn vue-cli-service ENOENT ...

  6. vue 报错unknown custom element解决方法

    vue 报错unknown custom element解决方法 参考文章: (1)vue 报错unknown custom element解决方法 (2)https://www.cnblogs.co ...

  7. vue 报错 Cannot read property ‘__ob__‘ of undefined的解决方法

    vue 报错 Cannot read property '__ob__' of undefined的解决方法 参考文章: (1)vue 报错 Cannot read property '__ob__' ...

  8. Vue报错:Unknown custom element: router-view - did you register the component correctly页面中不显示链接

    Vue报错:Unknown custom element: router-view - did you register the component correctly vue-router应用到组件 ...

  9. Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute permission

    为什么80%的码农都做不了架构师?>>>    Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute ...

最新文章

  1. OpenGL学习脚印: 投影矩阵和视口变换矩阵
  2. 一文详解JavaBean 看这篇就够了
  3. Xamarin XAML语言教程模板页面TemplatedPage
  4. sql 2005 解除用户锁定(SA帐户被锁定)
  5. IpIImage - CvMat 转换方法
  6. ORA-01180: can not create datafile 1 :解决一例
  7. 手机1像素线粗_小米1亿像素手机配置全曝光:史上最炫酷呼吸灯!
  8. 把SAP Analytics Cloud嵌入到SAP Cloud for Customer系统里
  9. 拆解飞机黑匣子,看看内部构造、PCB及芯片
  10. 认识队列技术中的硬件队列和软件队列及如何改变硬件队列长度
  11. 软硬件兼容性问题学习笔记
  12. SQL Server内部的内存管理
  13. caffe for Windows下的编译错误
  14. 微信公众号封面一键生成器
  15. 揭露SAP培训机构的套路
  16. STOP:0x0000007E蓝屏软件故障处理一例
  17. python中输入字符串_python如何输入字符串
  18. ES6标准入门略读笔记
  19. 《3D ISP核心技术算法》系列(1)——ToF测量中的多径现象与消除方法
  20. 时间处理 - Joda

热门文章

  1. GSEA文件准备及表达相关性分析(R语言)
  2. android java代码加密,Android中AES256加密的实现 – Leo Chin – 博客园
  3. linux统计大日志文件字符次数统计接口调用量
  4. Java 技术知识点汇总
  5. 完美解决Github上下载项目失败或速度太慢的问题
  6. 设置Spyder的整个界面为暗色配色(全部为dark theme,不仅仅Syntax coloring为暗色背景)
  7. Pspice仿真出错汇总
  8. 04 Softmax分类器
  9. EFI启动盘修改BIOS隐藏选项DVMT等显存参数提升性能
  10. 简单了解PKCS规范