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

Can't resolve 'react-web-gifted-chat' #8

Open
selyon opened this issue Jan 24, 2019 · 6 comments
Open

Can't resolve 'react-web-gifted-chat' #8

selyon opened this issue Jan 24, 2019 · 6 comments

Comments

@selyon
Copy link

selyon commented Jan 24, 2019

I get this error when i start the example application

Can't resolve 'react-web-gifted-chat in ./src/App.js

Steps to Reproduce

  • Download package from github
  • open terminal and go to the example folder
  • yarn
  • yarn start
@selyon
Copy link
Author

selyon commented Jan 24, 2019

I managed to make the example app work, i modified the package.json, removed this line
"react-web-gifted-chat": "file:../",
then i installed gifted-chat inside the example app as normal, using yarn.

Now when i start the app, only on Firefox (64.0.2 (64 bit)), it gives me this error
css2properties doesn't have an indexed property setter for '0'
everytime it tries to render something clickable, like an image or the SEND button.
Tested on Chrome, Edge and Safari it works without any problem.

@johniak
Copy link
Owner

johniak commented Jan 25, 2019

example is made to be able to use with whole repository
image
I will check the problem with firefox

@johniak
Copy link
Owner

johniak commented Jan 25, 2019

About firefox error somewhere in code propably exist react-native way of merge styles with array

@johniak
Copy link
Owner

johniak commented Jan 25, 2019

Firefox issue is fixed in v0.6.3

@johniak johniak closed this as completed Jan 25, 2019
@selyon
Copy link
Author

selyon commented Jan 28, 2019

The problem is still present when it tries to render the send button:
The above error occurred in the < div> component:

  • in div (created by TouchableOpacity)
  • in TouchableOpacity (created by Send)
  • in Send (created by InputToolbar)
  • in div (created by View)
  • in View (created by InputToolbar)
  • in div (created by View)
  • in View (created by InputToolbar)
  • in InputToolbar (created by GiftedChat)
  • in div (created by View)
  • in View (created by GiftedChat)
  • in GiftedChat (at App.js:25)
  • in div (at App.js:24)
  • in App (at src/index.js:7)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries. index.js:1446
TypeError: CSS2Properties doesn't have an indexed property setter for '0'

@johniak johniak reopened this Jan 28, 2019
@Inayat567
Copy link

Inayat567 commented Nov 16, 2023

what are the steps to reproduce the mentioned error @johniak
I have tried to reproduce, But cannot on chrome, Edge, and firebox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants