alibaba/formily

[Bug Report] formily-antdv5 在remix框架下报错

Ge-jh opened this issue · 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

在使用remix框架时出现,在运行npm run start 时构建过程中报错:Internal server error: require() of ES Module /workspace/node_modules/react-sticky-box/dist/index.js from /workspace/node_modules/@formily/antd-v5/lib/form-button-group/index.js not supported.
Instead change the require of /workspace/node_modules/react-sticky-box/dist/index.js in /workspace/node_modules/@formily/antd-v5/lib/form-button-group/index.js to a dynamic import() which is available in all CommonJS modules.

What is expected?

正常显示页面及表单

What is actually happening?

Package

@formily/antd-v5@1.1.9