You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tinycolor2 is a peer dependency of hoc-react-loader. It handles color picking for the default loading indicator. You don't have to install it if you use your own loading indicator.
But if I do import loader from 'hoc-react-loader', it crash if I don't have tinycolor2 as dependency. (I am using my own custom loader)
I have to import it like that import from 'hoc-react-loader/build/core' to avoid tinycolor2 dependency.
But if the build structure change, I will have a problem with that kind of import.
How could we import hoc-react-loader as default without having tinycolor2 dependency ?
The text was updated successfully, but these errors were encountered:
In the documentation, it's written :
But if I do
import loader from 'hoc-react-loader'
, it crash if I don't have tinycolor2 as dependency. (I am using my own custom loader)I have to import it like that
import from 'hoc-react-loader/build/core'
to avoid tinycolor2 dependency.But if the build structure change, I will have a problem with that kind of import.
How could we import hoc-react-loader as default without having tinycolor2 dependency ?
The text was updated successfully, but these errors were encountered: