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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:17

github_iconTop GitHub Comments

8reactions
yashrajthakorcommented, Aug 4, 2021

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

1reaction
krajcikondracommented, Oct 18, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running next js - TypeError: (0 ... - Stack Overflow
I didn't find any solution :( TypeError: (0 , react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV) is not a function. Reported error.
Read more >
Documentation - JSX - TypeScript
As of TypeScript 2.8, if JSX.ElementAttributesProperty is not provided, the type of first parameter of the class element's constructor or Function Component's ...
Read more >
React, how to fix the TypeError: resolver is not a function error
Turned out the solution was very simple. I was doing some editing and I commented out the default export to component of the...
Read more >
uncaught typeerror: (0 , react__ ...
useState) is not a function or its return value is not iterable. ... Uncaught Error: Invariant Violation: Element type is invalid: expected a...
Read more >
This2 not a function error when dispatching action-Reactjs
[Solved]-_This2 not a function error when dispatching action-Reactjs. Search. score:0. import "../Login/login";. Ehsan Korhani 75. Source: stackoverflow.com ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found