rebassjs / rebass

:atom_symbol: React primitive UI components built with styled-system.
https://rebassjs.org
MIT License
7.94k stars 656 forks source link

Uncaught TypeError: __webpack_require__.i(...) is not a function #1037

Closed adititipnis closed 4 years ago

adititipnis commented 4 years ago

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?