react-chat-widget: 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

Screenshot 2021-07-23 at 1 34 45 PM Screenshot 2021-07-23 at 1 42 23 PM

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 6
  • Comments: 19

Most upvoted comments

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

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

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.