react-chat-widget
react-chat-widget copied to clipboard
build Error: `TypeError: o.jsxDEV is not a function`
Hi, I would like to customize the sender component.
I downloaded the project and have not made any changes to the project. Then run npm install
and npm run build
.
Build was success. Then I run npm install path_to_my_local_react-chat-widget
on my root project.
so my dependencies is
"dependencies": {..., "react-chat-widget": "file:third_party/react-chat-widget", ...}
I use import { Widget } from 'react-chat-widget';
in my code but I got the error o.jsxDEV is not a function
How do i fix it? Thank you so much!
my react in the root project is 17.0.1
Hello mate, I am getting the same error. :/
seems to be some babel versioning issue :(
Bump please fix this
Hi same error :/
same issue faced
npm i [email protected] => it's worked if you downgrade the version.
Hi same error, thx
Only solution that worked for me - npm install [email protected]
Hello, as of 28 September 2021, that issue is still happening and downgrading to 3.0.5 seems to work indeed.
I can provide more details of my setup for the maintenance team (let me know if I can help)
Hello, Yes, 3.0.5 works fine but I'm not able to use the profileClientAvatar in this version. Also is there a prop to select file from the system to upload an image as a chat message ??
Thanks, Chirag Jain
On Tue, 28 Sept 2021 at 16:18, Dragos Iordache @.***> wrote:
Hello, as of 28 September 2021, that issue is still happening and downgrading to 3.0.5 seems to work indeed.
I can provide more details of my setup for the maintenance team (let me know if I can help)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wolox/react-chat-widget/issues/267#issuecomment-929074645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCA7Q532DYFOCKB7ZZHPATUEGMQ7ANCNFSM5A3LALLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Correct, profileClientAvatar and even emojis, seem to have been added after 3.0.5
Got it. Any idea for how I can choose a file from my system from the widget. I mean I wanted an input tag with type="file". Is that possible?
On Fri, 1 Oct 2021 at 16:34, Dragos Iordache @.***> wrote:
Correct, profileClientAvatar and even emojis, seem to have been added after 3.0.5
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Wolox/react-chat-widget/issues/267#issuecomment-932132425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCA7Q5NJUHA4VEQCP25RTDUEWITDANCNFSM5A3LALLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
What I did was hide the form from the implementation and stick a different form underneath with an upload button and a send button. The send button just uses the imperative API to push messages to the chat container.
Hello, as of 28 September 2021, that issue is still happening and downgrading to 3.0.5 seems to work indeed.
I can provide more details of my setup for the maintenance team (let me know if I can help)
I have "react": "^17.0.1", "react-chat-widget": "^3.0.5",
I still get TypeError: r.jsxDEV is not a function
Problem is in commit 08e421e2d2d5a446a501ead3e80db4cc3249bfb8 but I am not able to fix it
I have this same problem. Downgrading to 3.0.5 and it works. The newest version brings up either a blank page or the error at random of jsxDEV is not a function.
Hello, as of 28 September 2021, that issue is still happening and downgrading to 3.0.5 seems to work indeed. I can provide more details of my setup for the maintenance team (let me know if I can help)
I have "react": "^17.0.1", "react-chat-widget": "^3.0.5",
I still get TypeError: r.jsxDEV is not a function
Even i have same issue. downgraded version still error persists
has anyone figured out what the problem is?
it's the first time I've encountered her in so many years and I don't understand what the problem is!
I am assembling the project and configuration in production mode, but the cat is apparently for development
@budarin I don't recommend this package, It's extremely outdated. Probably better to build it yourself, It's not complicated at all.