首页 > 代码库 > import组件的时候报错

import组件的时候报错

去webpack.base.js配置

resolve: {
extensions: [‘.js‘, ‘.vue‘, ‘.json‘],
alias: {
‘vue$‘: ‘vue/dist/vue.esm.js‘,
‘@‘: resolve(‘src‘),
‘components‘:path.resolve(__dirname,‘../src/components‘),
‘common‘:path.resolve(__dirname,‘../src/common‘)

}

import组件的时候报错