This dependency was not found: * components/Header in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/Index.vue报错!
This dependency was not found: * components/Header in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/Index.vue
经查发现Index.vue路径引入错误,import PageHead from 'components/Header';改import PageHead from '../components/Header';大功告成!
error in ./src/components/Header/index.vue
Module build failed: Error: Cannot find module 'node-sass'
报错没有找到模块,在本地安装node-sass即可!
Administrator@RFIUWF1O4TJYV2J MINGW64 ~/Desktop/m_txcourse (master)
$ npm i node-sass@4.14.1 --save-dev