-
Notifications
You must be signed in to change notification settings - Fork 342
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
大佬,npm引入后项目本地没问题,但是项目在构建后报错是为啥啊 #51
Comments
感谢反馈, 我这边检查一下 @starSinking |
是不是打包的时候没有把 form-create 打包进去 |
不会吧,我在main.js中注释掉引入的designer,保留form-create,单独使用form-create的情况下打包好是正常的,引入designer就报错了。 |
手动修改一下 @form-create/deisnger 包中 package.json 文件,然后重新打包试试 @starSinking "unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"typings": "./types/index.d.ts",
"main": "./dist/index.umd.js",
"module": "./dist/index.es.js",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js"
}
}, |
好了,感谢 |
好的, 下个版本修复 |
3.0.2版本已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue3版本,element-plus,vite构建
![image](https://user-images.githubusercontent.com/43055274/195491656-01f95be7-541a-4cac-902b-7d47a1c055b3.png)
![image](https://user-images.githubusercontent.com/43055274/195492364-11a764ce-0964-48e2-b4e0-7e1c6a0a2e61.png)
![image](https://user-images.githubusercontent.com/43055274/195491741-e3700637-e8b2-4cb8-aa6a-d03b40a6aab3.png)
报错如下:
是在构建后的这块
对应的源码好像是
这个位置
The text was updated successfully, but these errors were encountered: