I am developing an external component (let\'s say my-component
, which I link to the project with npm link
(as it is in process and I need the packa
I am using ReactJS.net and setup webpack from the tutorial there and started using react-bootstrap
aswell when i started getting this error. I found adding 'react-dom': 'ReactDOM'
to the list of externals
in webpack.config.js
fixed the problem, the list of externals then looked like this:
externals: {
// Use external version of React (from CDN for client-side, or
// bundled with ReactJS.NET for server-side)
react: 'React',
'react-dom': 'ReactDOM'
This seems to be the first stack overflow link on google for this error, so i thought this answer might help someone here.