vue(^2.2.6)使用axios(^0.16.1),webpack热加载的时候报警告

集成axios的时候热加载报警告,之前用的vue热加载一直没警告,集成了axios之后就开始有警告。
警告如下:

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other c
ase-semantic.
Use equal casing. Compare these module identifiers:
* E:\Githome\github\ebook-vue\node_modules\._webpack@2.5.1@webpack\buildin\globa
l.js
    Used by 1 module(s), i. e.
    E:\Githome\github\ebook-vue\node_modules\._buffer@4.9.1@buffer\index.js
* e:\Githome\github\ebook-vue\node_modules\._webpack@2.5.1@webpack\buildin\globa
l.js
    Used by 1 module(s), i. e.
    e:\Githome\github\ebook-vue\node_modules\._vue@2.3.3@vue\dist\vue.esm.js

图片描述

浏览器访问都正常。但是也有警告:
图片描述

集成的过程就是安装了axios(npm i axios --save-dev)然后使用

import axios from 'axios';


export const getHomePage = params => {
  return axios.get(`/api/v1/**/homepage`, {params: params})
    .then(res => {
      if(res.data.code == 200){
        return res.data.value
      }else {
        
      }
    })
};

不知道为什么 ,求教·····

阅读 3.6k
2 个回答

我遇到很多次了,每次都需要删掉node_module文件夹才好的。。
但是我后来发现,不管他,可能明天启动他就自己好了。。。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题