引用文件时路径大小写不对

2019-07-13  本文已影响0人  给我把胡萝卜切成肉丁

这是引用组件时,路径大小写不对导致的警告

WARNING in ./node_modules/Vue/dist/vue.runtime.esm.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:

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

vue 包的名字是小写的,这样写就会报错:

import Vue from 'Vue';

按照下面的写法就ok:

import Vue from 'vue';
上一篇 下一篇

猜你喜欢

热点阅读