我正在测试的项目工作正常,但在我的项目上运行npm run dev
后,我收到此警告消息:
WARNING Compiled with 1 warnings 17:06:47
warning in ./node_modules/Vuex/dist/vuex.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:
* /Users/me/code/vue/vuex-test/node_modules/Vuex/dist/vuex.esm.js
Used by 1 module(s), i. e.
/Users/me/code/vue/vuex-test/node_modules/babel-loader/lib/index.js!/Users/me/code/vue/vuex-test/node_modules/vue-loader/lib/selector.js?type=script&index=0!/Users/me/code/vue/vuex-test/src/components/Test.vue
* /Users/me/code/vue/vuex-test/node_modules/vuex/dist/vuex.esm.js
Used by 1 module(s), i. e.
/Users/me/code/vue/vuex-test/node_modules/babel-loader/lib/index.js!/Users/me/code/vue/vuex-test/src/store/store.js
由我的import Vuex from 'vuex'
文件中的./store/store.js
行import store from './store/store'
引起,main.js
在我的s_id u_id product stage log date
2706771 369544 Auto Page 2 03-06-2017 13:01
2706771 369544 Auto Page 1 02-06-2017 15:51
2706771 369544 Auto Page 2 02-06-2017 15:52
2903900 459574 Credit Page 1 16-06-2017 17:14
2903900 459574 Credit Page 2 16-06-2017 17:14
2903900 459574 Credit Submit 16-06-2017 17:14
2903904 1879562 Person Page 1 16-06-2017 17:14
2903904 1879562 Person Page 2 16-06-2017 17:15
2903904 1879562 Person Submit 16-06-2017 17:16
2903904 1879562 Person Page 2 16-06-2017 17:16
中调用。
它是Vuex模块中的错误还是我可以在我的代码中修复它?
答案 0 :(得分:1)
该行:
import Vuex from 'vuex'
应该写:
import Vuex from 'Vuex'
答案 1 :(得分:0)
我也遇到过类似的问题。我已经停止了该应用程序,并使用npm run dev再次将其重新启动,错误消失了。 我正在使用
import Vuex from 'vuex';
本身,但似乎不是问题