You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL src/ConfigBox.test.tsx [ src/ConfigBox.test.tsx ]
SyntaxError: Cannot use import statement outside a module
❯ Object.compileFunction node:vm:360:18
❯ Object. node_modules/form-render/lib/form-core/index.js:8:1
Module /Users/devan/src/tmp/formrender/node_modules/antd/es/button/style/index.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "antd" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
1.依赖仓库的版本(Dependencies versions):
2.问题描述(Bug description):
vitest测试基于
FormRender
的组件失败3.出现问题的 schema demo(Reproduction schema demo):
4.最小复现 demo(Reproduction demo):https://github.com/DevanXU/form-render-issue
运行
$ yarn test
即可复现form-render demo https://codesandbox.io/s/unruffled-flower-jl78h
table-render demo https://codesandbox.io/s/sweet-euler-bdoty
fr-generator demo https://codesandbox.io/s/s13sh
The text was updated successfully, but these errors were encountered: