There are multiple modules with names that only differ in casing.

client?4c0e:153 ./src/components/Paginate.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 module identifiers:
* D:\phpStudy\WWW\school\backend\node_modules\vue-loader\index.js!D:\phpStudy\WWW\school\backend\src\components\Paginate.vue
    Used by 6 module(s), i. e.
    D:\phpStudy\WWW\school\backend\node_modules\babel-loader\lib\index.js!D:\phpStudy\WWW\school\backend\node_modules\vue-loader\lib\selector.js?type=script&index=0!D:\phpStudy\WWW\school\backend\src\views\teaching\education\Exam.vue
* D:\phpStudy\WWW\school\backend\node_modules\vue-loader\index.js!D:\phpStudy\WWW\school\backend\src\components\paginate.vue
    Used by 1 module(s), i. e.
    D:\phpStudy\WWW\school\backend\node_modules\babel-loader\lib\index.js!D:\phpStudy\WWW\school\backend\node_modules\vue-loader\lib\selector.js?type=script&index=0!D:\phpStudy\WWW\school\backend\src\views\studentGrowUp\studentRecord.vue
warnings @ client?4c0e:153
onmessage @ socket.js?e5d0:41
EventTarget.dispatchEvent @ sockjs.js?d6e8:170
(anonymous) @ sockjs.js?d6e8:883
SockJS._transportMessage @ sockjs.js?d6e8:881
EventEmitter.emit @ sockjs.js?d6e8:86
WebSocketTransport.ws.onmessage @ sockjs.js?d6e8:2957
client?4c0e:153 ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Paginate.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 module identifiers:
* D:\phpStudy\WWW\school\backend\node_modules\babel-loader\lib\index.js!D:\phpStudy\WWW\school\backend\node_modules\vue-loader\lib\selector.js?type=script&index=0!D:\phpStudy\WWW\school\backend\src\components\Paginate.vue
    Used by 2 module(s), i. e.
    D:\phpStudy\WWW\school\backend\node_modules\vue-loader\index.js!D:\phpStudy\WWW\school\backend\src\components\Paginate.vue
* D:\phpStudy\WWW\school\backend\node_modules\babel-loader\lib\index.js!D:\phpStudy\WWW\school\backend\node_modules\vue-loader\lib\selector.js?type=script&index=0!D:\phpStudy\WWW\school\backend\src\components\paginate.vue
    Used by 2 module(s), i. e.
    D:\phpStudy\WWW\school\backend\node_modules\vue-loader\index.js!D:\phpStudy\WWW\school\backend\src\components\paginate.vue

这是引用组件时,路径大小写不对导致的。比如:

如果Paginate组件是大写的,那么这样用会错: 

import Paginate from '~/components/paginate.vue';
需要这样写:
import Paginate from '~/components/Paginate.vue';

 

posted @ 2018-01-24 11:05  一轮明月随潮涌  阅读(36620)  评论(1编辑  收藏  举报