报错
ERROR Failed to compile with 1 errors 14:28:54 error in ../node_modules/_element-ui@2.13.0@element-ui/lib/theme-chalk/index.css Module build failed: Error: No PostCSS Config found in: E:VueProjects ode_modules\_element-ui@2.13.0@element-uilib heme-chalk at E:VueProjectsluffy ode_modulespostcss-load-configsrcindex.js:91:15 @ ../node_modules/_element-ui@2.13.0@element-ui/lib/theme-chalk/index.css 4:14-168 13:3-17:5 14:22-176 @ ./src/main.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
解决办法:
在E:VueProjects ode_modules\_element-ui@2.13.0@element-uilib heme-chalk中新建postcss.config.js,写入以下代码:
module.exports = { plugins: { 'autoprefixer': {browsers: 'last 5 version'} } }
再次npm run dev,就可以正常启动了