EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

Resolve warnings appearing in console

Open umangutkarsh opened this issue 2 years ago • 3 comments

Description:

Some warnings can be resolved in the (console tab of chrome-developer tools (If Browser === Google Chrome)).

Steps to reproduce:

  1. Do yarn storybook.
  2. Right click on screen -> Click on Inspect
  3. Open the console tab. See the warnings

Expected behavior:

These warnings can be resolved.

Actual behavior:

warn.webm

Warnings to resolve:

  • [ ] Failed prop type: Invalid prop setClosableState of type boolean supplied to EmbeddedChat, expected function.
  • [ ] Failed prop type: Invalid prop setClosableState of type boolean supplied to ChatHeader, expected function.
  • [x] Received true for a non-boolean attribute small.
  • [x] Each child in a list should have a unique "key" prop.
  • [x] React does not recognize the isEditing prop on a DOM element.
  • [x] React does not recognize the isPending prop on a DOM element.

umangutkarsh avatar Dec 23 '23 11:12 umangutkarsh

I have setup the development environment, but storybook is unable to connect to localhost:3000. it gives me this type of error: image

I have used correct credentials

devanshkansagra avatar Dec 23 '23 11:12 devanshkansagra

I have setup the development environment, but storybook is unable to connect to localhost:3000. it gives me this type of error: image

I have used correct credentials

I am able to login following the same steps. Are you entering the correct credentials? I signed up through this hosted server -> https://chat.avitechlab.com/ . Have you signed up to this?^ Or if you are able to run the RocketChat server locally, have you signed up to that?

umangutkarsh avatar Dec 23 '23 13:12 umangutkarsh

Now I am able to work on this, I have signed in and I have added STORYBOOK_RC_HOST=https://chat.avitechlab.com to .env so that I can directly access that server

devanshkansagra avatar Dec 23 '23 14:12 devanshkansagra