Open menghuanCode opened 4 years ago
Translation of this issue:
2.13.0
Windows10 / 76.0.3809.132 (64 bit)
2.6.11
https://github.com/menghuanCode/element-issue
Create a project using vue-cli @ 3
npm install element-ui
npm install babel-plugin-component -D
update babel.config.js
module.exports = {
presets: [ '@vue/cli-plugin-babel/preset' ],
Plugins: [
[ "component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
]
}
` ` ` `
### What is Expected?
Run successfully
Successful operation
### What is actually happening?
```txt
ERROR Failed:
This dependency was not found:
* core-js/modules/es.object.to-string in ./src/router/index.js
To install it, you can run: npm install --save core-js/modules/es.object.to-string
` ` ` `
Need to reinstall babel-plugin-component to run successfully
(Babel plugin component needs to be reinstalled to run successfully)
I don't know what happened during this time
(I don't know what happened during this period)
I konw vue-cli-plugin-element can use
(I know there is Vue cli plugin element available)
I am out of curiosity
I'm curious
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.13.0
OS/Browsers version
window10/ 76.0.3809.132 (64 位)
Vue version
2.6.11
Reproduction Link
https://github.com/menghuanCode/element-issue
Steps to reproduce
What is Expected?
Run successfully 运行成功
What is actually happening?
Need to reinstall babel-plugin-component to run successfully (需要重新安装 babel-plugin-component 才能运行成功)
I don't know what happened during this time (我不知道这段时间发生了什么)
I konw vue-cli-plugin-element can use (我知道有 vue-cli-plugin-element 可以使用)
I am out of curiosity 我出于好奇