form-create-designer icon indicating copy to clipboard operation
form-create-designer copied to clipboard

启动报错

Open G-Akiraka opened this issue 7 months ago • 1 comments

已经在main里面引入 并且安装了包 import formCreate from '@form-create/element-ui' import FcDesigner from '@form-create/designer' app.use(formCreate) app.use(FcDesigner)

[ERROR] Could not resolve "element-plus"

node_modules/.pnpm/@[email protected][email protected]/node_modules/@form-create/designer/dist/index.es.js:12:32:
  12 │ import { ElMessage as Sh } from "element-plus";
     ╵                                 ~~~~~~~~~~~~~~

You can mark the path "element-plus" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

/Users/akiraka/Documents/QuarkArcoPro/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1472 let error = new Error(text); ^

Error: Build failed with 1 error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@form-create/designer/dist/index.es.js:12:32: ERROR: Could not resolve "element-plus"

G-Akiraka avatar Jun 27 '24 03:06 G-Akiraka