./src/App.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&)
Module not found: Error: Can’t resolve ‘api’ in ‘C:\Users\Administrator\vue-sell-cube\src’
在写App.vue读取seller数据的时候,
敲到这个位置的时候报这样的错。不能解析api
chainWebpack(config) {
config.resolve.alias
.set(‘components’, resolve(‘src/components’))
.set(‘common’, resolve(‘src/common’))
.set(‘api’, resolve(‘src/api’))
}
老师,这怎么解决。
掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp
了解课程