Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is react-autosize-textarea? #59728

Open
n-for-all opened this issue Mar 9, 2024 · 5 comments · May be fixed by #64208
Open

what is react-autosize-textarea? #59728

n-for-all opened this issue Mar 9, 2024 · 5 comments · May be fixed by #64208
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Question Questions about the design or development of the editor.

Comments

@n-for-all
Copy link

Description

npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-autosize-textarea@7.1.0
npm WARN node_modules/react-autosize-textarea
npm WARN react-autosize-textarea@"^7.1.0" from @wordpress/block-editor@12.21.0

Step-by-step reproduction instructions

npm install @wordpress/block-editor@latest --save

Screenshots, screen recording, code snippet

none

Environment info

latest

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

@n-for-all n-for-all added the [Type] Bug An existing feature does not function as intended label Mar 9, 2024
@thesandybridge
Copy link

@jordesign jordesign added [Type] Question Questions about the design or development of the editor. and removed [Type] Bug An existing feature does not function as intended labels Mar 12, 2024
@tellthemachines
Copy link
Contributor

The block-editor package has react as a peer dependency, and react-autosize-textarea requires it. Do you have react installed in your project?

@n-for-all
Copy link
Author

react-autosize-textarea requires react 16 and this library is already archived, gutenberg requires react 18, the installation doesn't work without -force install on npm

@tellthemachines
Copy link
Contributor

It should work fine with react 18, as that's what gutenberg uses. That warning doesn't show when running npm i on the whole project, and checking the package-lock confirms the react-autosize-textarea version is 7.1.0 and the react version os 18.2.0.

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Aug 2, 2024
@tyxla
Copy link
Member

tyxla commented Aug 2, 2024

I've experimented with removing react-autosize-textarea in favor of our built-in TextareaControl with field-sizing in #64208.

It's a bummer that it's blocked by field-sizing's browser support, but hopefully, this will change soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants