I am using rebass in a component library which is in react 16. The library is being consumed by an application in react 15. I am getting the error Uncaught TypeError: __webpack_require__.i(...) is not a function on adding an import from my component library to my application.
This error occurs at ~/rebass/dist/index.esm.js at line export var Text = forwardRef(function (props, ref) { . Is the solution to this to add a peerDependency to react 16 in rebass? Or is there a better way?
I am using rebass in a component library which is in react 16. The library is being consumed by an application in react 15. I am getting the error
Uncaught TypeError: __webpack_require__.i(...) is not a function
on adding an import from my component library to my application.This error occurs at
~/rebass/dist/index.esm.js
at lineexport var Text = forwardRef(function (props, ref) {
. Is the solution to this to add a peerDependency to react 16 in rebass? Or is there a better way?