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 was getting this because I had already included react and react-dom as external scripts in my HTML markup.
The error was caused by adding an import ReactDOM from 'react-dom' to a component module. The error went away once I removed the import, and the module worked fine since the components were already available.