Wolox / react-chat-widget

Awesome chat widget for your React App
MIT License
1.43k stars 450 forks source link

build Error: `TypeError: o.jsxDEV is not a function` #267

Open jackChauT opened 3 years ago

jackChauT commented 3 years ago

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

Screenshot 2021-07-23 at 1 34 45 PM Screenshot 2021-07-23 at 1 42 23 PM
bharath-naik commented 2 years ago

Hello mate, I am getting the same error. :/

bharath-naik commented 2 years ago

seems to be some babel versioning issue :(

hichemfantar commented 2 years ago

Bump please fix this

vinodveloo commented 2 years ago

Hi same error :/

yashrajthakor commented 2 years ago

same issue faced

yashrajthakor commented 2 years ago

npm i react-chat-widget@v3.0.5 => it's worked if you downgrade the version.

sh1okoh commented 2 years ago

Hi same error, thx

chiragj97 commented 2 years ago

Only solution that worked for me - npm install react-chat-widget@3.0.5

DragoshDX commented 2 years ago

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)

chiragj97 commented 2 years ago

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.

DragoshDX commented 2 years ago

Correct, profileClientAvatar and even emojis, seem to have been added after 3.0.5

chiragj97 commented 2 years ago

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.

DragoshDX commented 2 years ago

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.

Madan57 commented 2 years ago

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

krajcikondra commented 2 years ago

Problem is in commit 08e421e2d2d5a446a501ead3e80db4cc3249bfb8 but I am not able to fix it

Lightfooted commented 2 years ago

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.

aravindd7 commented 2 years ago

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

budarin commented 1 year ago

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

hichemfantar commented 1 year ago

@budarin I don't recommend this package, It's extremely outdated. Probably better to build it yourself, It's not complicated at all.