Error Description:
1. Copy node_modules / element-ui / packages / date-picker in the files to your project in
---------》》》》》》》
2. Run npm run serve error exports is not defined
solution:
1. Modify babel.config.js
module.exports = { presets: [ ['@vue/app', { useBuiltIns: 'entry' //添加 }] ] }
Add in 2.main.js
import '@babel/polyfill'
Add in 3.babel.config.js
module.exports = { transpileDependencies:[ 'element-ui' ], };
Other refer to the official website: https://cli.vuejs.org/zh/guide/browser-compatibility.html#browserslist