Skip to content

Latest commit

ย 

History

3,191 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

English | ็ฎ€ไฝ“ไธญๆ–‡

PRs Welcome


Background

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.

Features

  • ๐Ÿ–ผ 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.

Form Builder

https://designable-antd.formilyjs.org/

WebSite

2.0

https://formilyjs.org

1.0

https://v1.formilyjs.org

Community

How to contribute?

Contributors

This project exists thanks to all the people who contribute.

Troubleshooting: workspace:* error when installing @next-formily packages

Symptom

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).

Root cause

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:

  1. An early 3.1.1 was published with npm publish, which keeps workspace:* inside the tarball's inner package.json.
  2. The packages were later re-published with pnpm publish, which rewrites workspace:* to real versions.
  3. However, pnpm caches the package metadata under ~/.cache/pnpm/v11/metadata/<registry>/@next-formily/*.jsonl, and pnpm install reads this reduced cache. If it still holds the old metadata, it fails โ€” while pnpm view (which uses metadata-full) looks clean, which is the tell-tale sign.

Fix

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

Prevention

  • Always publish with pnpm publish (never npm publish) so workspace:* in the workspace protocol is converted to real versions inside the published tarball.
  • When releasing a new version, remind consumers to clear the @next-formily pnpm metadata caches if they hit this error.

LICENSE

Formily is open source software licensed as MIT.

About

๐Ÿ“ฑ๐Ÿš€ ๐Ÿงฉ Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages