vue报错There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-semantic. Use equal casing. Compare these mod

今天在开发一个新项目时,当安装完依赖包启动项目后报了一个这个错

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers

谷歌翻译一下:

有多个模块的名称仅在大小写上有所不同。
在具有其他区分大小写的文件系统上编译时,这可能导致意外行为。
使用相等的套管。 比较这些模块标识符

----------------------------------------

这大概意思就是哪里大小写没有写的精确

再仔细看一下报错信息

warning in ./src/modules/screen/views/ArrivalView.vue?vue&type=script&lang=js&

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\babel-loader\lib\index.js?cacheDirectory!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\index.js??vue-loader-options!G:\AsiaInfo\tianjin\iscreen-datav-web\src\modules\screen\views\ArrivalView.vue?vue&type=script&lang=js&
Used by 4 module(s), i. e.
G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\loaders\pitcher.js??ref--4!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\babel-loader\lib\index.js?cacheDirectory!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\index.js??vue-loader-options!G:\AsiaInfo\tianjin\iscreen-datav-web\src\modules\screen\views\ArrivalView.vue?vue&type=script&lang=js&
* G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\babel-loader\lib\index.js?cacheDirectory!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\index.js??vue-loader-options!G:\AsiaInfo\tianjin\iscreen-datav-web\src\modules\screen\views\arrivalView.vue?vue&type=script&lang=js&
Used by 4 module(s), i. e.
G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\loaders\pitcher.js??ref--4!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\babel-loader\lib\index.js?cacheDirectory!G:\AsiaInfo\tianjin\iscreen-datav-web\node_modules\vue-loader\lib\index.js??vue-loader-options!G:\AsiaInfo\tianjin\iscreen-datav-web\src\modules\screen\views\arrivalView.vue?vue&type=script&lang=js&

初步判断就是ArrivalView.vue这个文件在引用时估计大小写没写好

来全局搜一下↓

果然这里有引用ArrivalView.vue时没有区分大小写

当我将a改成大写后,成功启动好了,good!

原文地址:https://www.cnblogs.com/bobo1/p/11712128.html

时间: 2024-10-18 12:11:25

vue报错There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-semantic. Use equal casing. Compare these mod的相关文章

vue 引入库css时,报There are multiple modules with names that only differ in casing.警告

vue项目,在引入element-ui样式时(在react angular项目中也出现此告警) import 'element-ui/lib/theme-chalk/index.css' 报警告: warning in D:/vuePro/cloud-monitor-vue/node_modules/[email protected]3.2.0@css-loader/dist/runtime/api.js There are multiple modules with names that on

多个文件名大小写不同,是因为运行代码是大写E,用vscode运行的是小写e,解决方案:手动npm run dev #There are multiple modules with names that only differ in casing.

warning in E:/xxx/xx/xxx/node_modules/[email protected]4.1.2@vue-style-loader/lib/listToStyles.js There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-se

vue报错 Module not found: Error: Cannot resolve 'file' or 'directory'

炸了,我好写sell而组件,直接就用了,我的天哪 看你的写了吗,就用: Module not found: Error: Cannot resolve 'file' or 'directory' 页另一种错误,按这种情况我没遇到:http://www.mamicode.com/info-detail-1564042.html vue报错 Module not found: Error: Cannot resolve 'file' or 'directory'

vue报错集锦

1.vue报错: 没安装 less-loader css-loader style-loader      可能的很大原因:没安装less 2.vuex报错:Computed property "xxx" was assigned to but it has no setter 在使用了vuex的情况下,state时导入的state,在页面中不能直接更改state的值,需要在mutation方法中更改,然后在vue组件中commit该方法 3.iview报错:iview出现col栅格提

【Vue报错】Module build failed: Error: No parser and no file path given, couldn't infer a p arser.

在创建一个vue项目启动时报错,报错的内容为: error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a p arser. at UndefinedParserError.Wrapper (D:\dyyc\bookstore\[email protected] [email protected]\index.js:1948:14) at new Und

vue 报错 :属性undefined(页面成功渲染)

vue 报错:Cannot read property 'instrumentId' of undefined" 相关代码如下: <template> ... <span>{{data.params.instrumentId}}</span> ... </template> <script> export default { data () { return { data: {} }; }, methods: { // 请求接口获得数据

vue报错之Duplicate keys detected: &#39;0&#39;. This may cause an update error.

昨天运行vue项目的时候,出现了[Vue warn]: Duplicate keys detected: '0'. This may cause an update error. 错误,检测到重复的key值.主要是写了两个for循环,我们在使用v-for的时候,都要加上一个必要的key值,然而又将key的值写成一样的了. 可以将其中一个的key修改一下即可. <div class="info1" v-for="(item, index) in itemList"

vue 报错解决:TypeError: Cannot read property &#39;_t&#39; of undefined&quot;

前端报错如下: [Vue warn]: Error in render: "TypeError: Cannot read property '_t' of undefined" 是在项目中用了多语言配置,vue 跟 i18n之间的兼容问题.解决方法如下: Vue.use(iView) 替换成 Vue.use(iView, { i18n: function(path, options) { let value = i18n.t(path, options) if (value !== n

Vue报错 Duplicate keys detected: &#39;1&#39;. This may cause an update error. vue报错

情况一.错误信息展示为关键字‘keys‘,此时应该检查for循环中的key,循环的key值不为唯一性 (很普通) 情况二.有两个相同的for循环,而这两个for循环的key值是一样的,此时将一个的key值加一个数字或者加一个字符串例如 Vue报错 Duplicate keys detected: '1'. This may cause an update error. vue报错 原文地址:https://www.cnblogs.com/qiu-Ann/p/11359728.html