Broken export when using Webpack 2 (React.createElement: type should not be null)
See original GitHub issueIn 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:
- Created 7 years ago
- Reactions:11
- Comments:25 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just spent an entire day with @bonitis trying to track down an issue that has this at its root. Good find, @halt-hammerzeit!
+1