Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报错 #147

Open
G-Akiraka opened this issue Jun 27, 2024 · 1 comment
Open

启动报错 #147

G-Akiraka opened this issue Jun 27, 2024 · 1 comment

Comments

@G-Akiraka
Copy link

已经在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/@form-create[email protected][email protected]/node_modules/@form-create/designer/dist/index.es.js:12:32: ERROR: Could not resolve "element-plus"

@G-Akiraka
Copy link
Author

form-create/designer/package 项目中 "element-plus": "^2.0.1", 不会安装上,这个是不是有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant