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.

Broken export when using Webpack 2 (React.createElement: type should not be null)

See original GitHub issue

In 3.1.0 the export is not broken: typeof require('react-helmet') === 'function'. In 3.2.0 it is broken: typeof require('react-helmet') === 'object'. The error is “Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of Layout.” The cause is that v3.2.x of ReactHelmet is { default: function ReactHelmet() {} } when imported in Webpack 2.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

7reactions
mbifulcocommented, Nov 5, 2016

Just spent an entire day with @bonitis trying to track down an issue that has this at its root. Good find, @halt-hammerzeit!

5reactions
Bonitiscommented, Nov 5, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

React.createElement: type should not be null, undefined ...
In your webpack config, you're using the babel-loader . This implies that you're using ES6 style modules. In salutamondo.js , you're using ......
Read more >
How I Fixed: Warning: React.createElement: type should not ...
The two errors I kept running into were: Warning: React. createElement: type should not be null, undefined, boolean, or number. It should be...
Read more >
API - esbuild
This API call is used by the command-line interface if there is at least one input file provided or the --bundle flag is...
Read more >
My app breaks when I update to 4.12 or later - MDBootstrap
I have "react": "^16.8.2" in my dependancies and I am using the github URL in my ... I don't really know how the...
Read more >
html-react-parser - npm
HTML to React parser.. Latest version: 3.0.6, last published: 3 days ago. Start using html-react-parser in your project by running `npm i ...
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