react-chat-widget icon indicating copy to clipboard operation
react-chat-widget copied to clipboard

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

Open jackChauT opened this issue 3 years ago • 19 comments

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

jackChauT avatar Jul 23 '21 05:07 jackChauT

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

bharath-naik avatar Aug 01 '21 08:08 bharath-naik

seems to be some babel versioning issue :(

bharath-naik avatar Aug 01 '21 14:08 bharath-naik

Bump please fix this

hichemfantar avatar Aug 02 '21 20:08 hichemfantar

Hi same error :/

vinodveloo avatar Aug 03 '21 06:08 vinodveloo

same issue faced

yashrajthakor avatar Aug 04 '21 03:08 yashrajthakor

npm i [email protected] => it's worked if you downgrade the version.

yashrajthakor avatar Aug 04 '21 03:08 yashrajthakor

Hi same error, thx

sh1okoh avatar Aug 05 '21 12:08 sh1okoh

Only solution that worked for me - npm install [email protected]

chiragj97 avatar Sep 23 '21 19:09 chiragj97

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)

DragoshDX avatar Sep 28 '21 10:09 DragoshDX

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.

chiragj97 avatar Sep 28 '21 11:09 chiragj97

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

DragoshDX avatar Oct 01 '21 11:10 DragoshDX

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.

chiragj97 avatar Oct 01 '21 16:10 chiragj97

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.

DragoshDX avatar Oct 01 '21 16:10 DragoshDX

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

Madan57 avatar Oct 11 '21 07:10 Madan57

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

krajcikondra avatar Oct 18 '21 08:10 krajcikondra

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.

Lightfooted avatar Nov 19 '21 02:11 Lightfooted

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

aravindd7 avatar Dec 01 '21 11:12 aravindd7

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 avatar May 16 '23 19:05 budarin

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

hichemfantar avatar May 17 '23 08:05 hichemfantar