While working on a big code base I all of a sudden get a bunch of errors such as "cannot be used as a JSX component." It seems only to happen to React Icons and all components that return Flux's Container.create
It doesn't seem to happen to any other component. I've tried upgrading React + React-dom etc. - I've tried to make sure that all components return only one element, and a bunch of other stuff. Nothing is working. It seems that typescript just plain fails.
Anybody have anything to help me diagnose the problem?