Closed unsafeFunction closed 5 years ago
Hi @unsafeFunction , I added some syntax highlighting to your question to help reading. :)
Are you trying to use or trying to contribute to react-chat-window? If you are trying to use it, can you explain a bit more your setup? Did you start a project, yarn add react-chat-window
, and try to use it somewhere? What does your usage look like (import { Launcher } from 'react-chat-window'
or something else)?
Also, I'm curious if the issue title "Build version" showed up somehow in the problem you're experiencing?
Thanks!
Hi @heatherbooker =)
Yes, i add and import { Launcher }
After that i run yarn start:production
Production is a following command:
start:production": "NODE_ENV=production NODE_PATH=./src BABEL_ENV=production node build/server.js
And your question about issue title - yes, i mean, that when i build - it crash =(
Are you using the Launcher
in your code after you import it? How? If you could share your code here, that might be helpful to debug.
<Launcher agentProfile={{ teamName: 'Chat' }} onMessageWasSent={this.onMessageSent} messageList={messages} onFilesSelected={false} isOpen={isOpen} newMessagesCount={parseInt(count, 10) || 0} handleClick={this.handleClick} />
It's look like this. I think problem in audio notification and also, as i see site with demo not working in build version.
I'm afraid I'm not sure what the problem is. :(
onFilesSelected
should be a function, not a boolean, but that shouldn't stop the app from building. If all the other arguments that you are passing to the Launcher
are of the correct type, it looks correct to me.
Some debugging ideas you could try and see if the app builds, then work from there:
Or if you can provide here a broader view of your whole project and setup (ie, every part of code that the rcw touches - where it's imported, required, used; where all variables passed as props to it are declared and/or modified; etc) here, maybe we can help more that way. (As a link to a project on github, or if you want to paste code I suggest using 3 backticks(`) on a new line, so that it appears in a block :) )
This has been inactive for a while so I'm going to close it. Feel free to re-open if the problem develops.
Hi! I have an error, when run
yarn start:production