question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UMD version error: React.createElement: type is invalid

See original GitHub issue

I’m trying to use the client-ready version of the component. However I’m facing the following error: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. I have attached a bare-bones version of what I’m trying to achieve. sample.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
AllenFangcommented, Feb 24, 2018

@KamyarP try:

const BootstrapTable = ReactBootstrapTable.default;
render() {
   return<BootstrapTable  .../>; 
}

and let me know if the problem is still remain and open this issue again, thanks

I will improve the UMD system in future

Read more comments on GitHub >

github_iconTop Results From Across the Web

React.Create Element type is Invalid - Stack Overflow
Im using Typescript, Electron, Webpack and NodeJS to make a webapp but for some reason the import/export isnt working properly. The error im ......
Read more >
Warning: React.createElement: type is invalid -- expected a ...
I have uninstalled and reinstalled reac and react-dom, and the problem still persists, try a new project cloning it from a friend, and...
Read more >
Error React createElement type is invalid expected a string for ...
The issue you have encountered was caused by mixing two different module systems which differ in the way they are resolved and implemented....
Read more >
React.createElement: type is invalid error after bundling and ...
Coding example for the question React.createElement: type is invalid error after bundling and importing react component to another react app-Reactjs.
Read more >
How to Build Your Own Version of React From Scratch - Andela
createElement takes a node-type , props and finally children . ... load the umd version because it sets global.tevreact --> <script src=".
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