报错信息:
X [ERROR] Could not resolve "@vue/shared"
node_modules/element-plus/es/components/upload/src/upload-content2.mjs:2:42:
2 │ import { isPlainObject, isFunction } from '@vue/shared';
╵ ~~~~~~~~~~~~~
You can mark the path "@vue/shared" as external to exclude it from the bundle, which will remove
this error.
错误原因:缺少@vue/shared依赖
解决方案:执行以下命令,将 @vue/shared 添加到项目的依赖中
npm install --save @vue/shared