formily icon indicating copy to clipboard operation
formily copied to clipboard

[Bug Report] @formily/elementw使用umd的全量包报错,Element undefined

Open ksh033 opened this issue 5 months ago • 0 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

引入formily.element.umd.production.js

What is expected?

正常是不会报错

What is actually happening?

Element null

Package

@formily/[email protected]


const externals = {

'element-ui': 'Element',

},应该替换成ELEMENT因为ElementUI 的umd包,生明的是ELEMENT

ksh033 avatar Sep 04 '24 10:09 ksh033