erictooth / react-accessible-form Goto Github PK
View Code? Open in Web Editor NEWReact Accessible Form makes handling layout and accessibility easy when writing forms.
License: MIT License
React Accessible Form makes handling layout and accessibility easy when writing forms.
License: MIT License
Hi:
Installing dependencies in a consuming package with npm 7+ and with react v17/v18 results in this error. We are using the --legacy-peer-deps
option to overcome this for now. It would be good to have v17 and v18 support and not see this error in consuming apps.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @informatica/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! dev react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-accessible-form
npm ERR! react-accessible-form@"=2.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Any thoughts?
Basic typescript definitions can be generated with @pika/pack. When using react-accessible-form with tsc we're seeing errors like:
TS2307: Cannot find module 'react-accessible-form'
Passing a custom component to as
if it's of type ExoticComponent
results in a typescript error:
Type 'ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & RefAttributes<HTMLInputElement>>'
is not assignable to type 'FunctionComponent<{ className: string; disabled: boolean; id: string; required: boolean; }
& Record<string, unknown> & HTMLAttributes<any> & RefAttributes<any>>'
Not sure how to make this more flexible, but I suspect the issue is stemming from here:
react-accessible-form/src/Box.type.ts
Line 6 in bb9d539
This CSB demo outlines the issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.