Closed aibrahim3546 closed 5 years ago
-was not constructive-
The issue was solved:
This is happening because of the version of styled-components
which I was using previously is version 4.0.0
.
Once I downgrade my styled-components
to version ^3.1.6
it was working fine. This is because version 4.0.0
is using the latest reactjs with the support of contextApi
, Since preact
don't have contextApi
this error will occur.
@ForsakenHarmony thank you for suggestion :)
How can I use styled-component with 4.0.0 with preact?
Do you want to request a feature or report a bug?
No
What is the current behaviour?
Intstalled styled-component via npm:
npm install styled-components --save
When run
npm run start
:Hit this error:
Please mention other relevant information.