English | ็ฎไฝไธญๆ
In React, the whole tree rendering performance problem of the form is very obvious in the controlled mode. Especially for the scene of data linkage, it is easy to cause the page to be stuck. To solve this problem, we have distributed the management of the state of each form field, which significantly improves the performance of the form operations. At the same time, we deeply integrate the JSON Schema protocol to help you solve the problem of back-end driven form rendering quickly.
- ๐ผ Designable, You can quickly develop forms at low cost through Form Builder.
- ๐ High performance, fields managed independently, rather rerender the whole tree.
- ๐ก Integrated Alibaba Fusion and Ant Design components are guaranteed to work out of the box.
- ๐จ JSON Schema applied for BackEnd. JSchema applied for FrontEnd. Two paradigms can be converted to each other.
- ๐ Side effects are managed independently, making form data linkages easier than ever before.
- ๐ฏ Override most complicated form layout use cases.
2.0
1.0
This project exists thanks to all the people who contribute.
In a consumer project (for example ValueOctpus/web), pnpm install fails with:
[ERR_PNPM_WORKSPACE_PKG_NOT_FOUND] In : "@next-formily/core@workspace:*" is in the dependencies but no package named "@next-formily/core" is present in the workspace
It may also report ERR_PNPM_TARBALL_INTEGRITY while downloading the tarballs, even though pnpm view @next-formily/antd@3.1.1 dependencies returns clean real versions (3.1.1).
The published artifacts are fine โ the tarballs on Nexus (both sc_formily and npm-public) contain real 3.1.1 dependency versions, not workspace:*. The real culprit is a stale pnpm metadata cache on the consumer machine:
- An early
3.1.1was published withnpm publish, which keepsworkspace:*inside the tarball's innerpackage.json. - The packages were later re-published with
pnpm publish, which rewritesworkspace:*to real versions. - However, pnpm caches the package metadata under
~/.cache/pnpm/v11/metadata/<registry>/@next-formily/*.jsonl, andpnpm installreads this reduced cache. If it still holds the old metadata, it fails โ whilepnpm view(which usesmetadata-full) looks clean, which is the tell-tale sign.
Clear the pnpm metadata caches and reinstall:
rm -rf ~/.cache/pnpm/v11/metadata/*/@next-formily \
~/.cache/pnpm/v11/metadata-full/*/@next-formily \
~/.cache/pnpm/v11/metadata-full-filtered/*/@next-formily
pnpm install- Always publish with
pnpm publish(nevernpm publish) soworkspace:*in the workspace protocol is converted to real versions inside the published tarball. - When releasing a new version, remind consumers to clear the
@next-formilypnpm metadata caches if they hit this error.
Formily is open source software licensed as MIT.

