plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
448 stars 611 forks source link

Form component doesn't display error message when white-spaces as input given to it #3513

Open MdSahil-oss opened 2 years ago

MdSahil-oss commented 2 years ago

Describe the bug Form component doesn't display error message when white-spaces as input given to it

To Reproduce In a Form when no input is entered in an input tag then at the time of submission form produces an error message but if there is input as white-spaces in input tag then form displays no error message.

Expected behavior Form component should display an error message when white-spaces as input received by one of input-tags of Form.

ayush3160 commented 2 years ago

Hi @MdSahil-oss I am Ayush . Can I work on this issue if no one is working on this

MdSahil-oss commented 2 years ago

@ayush3160 Yeah! sure.

ayush3160 commented 2 years ago

@MdSahil-oss can you please guide me how can I setup the project in my local system. I have installed the docker desktop and I have also cloned the repositiory . I am getting little confused from Readme.

MdSahil-oss commented 2 years ago

@ayush3160 To run backend as container use: docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="plone.restapi==8.22.0 plone.volto==4.0.0a4 plone.rest==2.0.0a5 plone.app.iterate==4.0.2 plone.app.vocabularies==4.3.0" -e PROFILES="plone.volto:default-homepage" plone/plone-backend

and in the cloned volto repository run: yarn start

ayush3160 commented 2 years ago

Hi @MdSahil-oss I was trying to install the dependencies but it is showing an error due to which I think the frontend is not able to compile. I searched a lot to solve this error but found nothing. Can you please help me in removing this error. I have attached the screenshot of error.

Error :- Screenshot (10) Compile Problem :- Screenshot (11)

Thanks for reading

MdSahil-oss commented 2 years ago

@ayush3160 When did you clone the volto repository? If you cloned it a few days ago then try to update your local branch with volto's master branch and then let me know if you get this error again.

ayush3160 commented 2 years ago

Hi @MdSahil-oss I updated my local branch from volto's master branch and tried to install but it is now showing a new error related to Why package. Error :- Screenshot (13)

I think this error is coming because of 1st line in node_modules/why/src/postinstall.js Screenshot (15)

And also the previous error is also coming (When I removed the why package from package.json and installing again).

Can you please help me in removing this error.

MdSahil-oss commented 2 years ago

Hey! @ayush3160 (I usually use ubuntu OS) Today, when I ran the volto repository locally on widows 11 OS then I'm also getting the same error. so if you're able to resolve the error then go for it but before solving the error create an Issue in the volto repository of plone regarding to this error. if you are unable to resolve the error so just create an issue.