我正在構建一個從webpack模板(vue-wepack-template)開始的Vue應用程序。 單元測試的通過命令的執行過程:測試執行期間的Vue警告
yarn run unit
我可以看到一些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:
* /Users/xxxxxxx/components/node_modules/vue-loader/index.js??ref--1!/Users/xxxxxxxx/components/node_modules/eslint-loader/index.js??ref--0!/Users/xxxxxxxx/components/src/components/Layout/FullScreen.vue
Used by 2 module(s), i. e.
ERROR LOG: '[Vue warn]: Unknown custom element: <router-link> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
ERROR LOG: '[Vue warn]: Error in mounted hook: "ReferenceError: Can't find variable: d3"
它們看起來像某種的WebPack配置問題,但我不知道在哪裏開始調試這個。我沒有觸及默認的測試配置和測試運行良好...
我錯過了什麼?