集成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 {
}
})
};
不知道为什么 ,求教·····
我遇到很多次了,每次都需要删掉node_module文件夹才好的。。
但是我后来发现,不管他,可能明天启动他就自己好了。。。