farahat80 / react-open-weather

React open weather is a React Component loading forecast data from Various weather providers (currently OpenWeather, WeatherBit and VisualCrossing)
MIT License
115 stars 64 forks source link

Themes do not work #99

Closed daniiy01 closed 2 years ago

daniiy01 commented 2 years ago

Hi, I need to be able to change the svg colour to white and I can't get the themes to work. I created one following your Readme.md example and I can't get the defined colours to work. What could it be due to? When reloading the browser, as far as I can briefly see, I think it loads the colours, but after a few tenths of a second it overwrites it.

(I do not put code as it is literally a copy paste of your example.)

PD: I am getting the following error in the browser console (Irrespective of whether or not I put up the themes) image

Thanks in advance.

Meloyg commented 2 years ago

Are you using typescript for your react project?

I got the same issue when I was doing local development, but it works fine after deploying it.

image

daniiy01 commented 2 years ago

Are you using typescript for your react project?

I got the same issue when I was doing local development, but it works fine after deploying it.

image

Hello. Yes I am using typescript but I have not yet tried to test it outside Visual Studio. I'm still developing it. I'll try it when I have everything finished. Thank you very much!

uriya4647 commented 2 years ago

hi there is me also the same problem, what is the solution, I cannot understand?

farahat80 commented 2 years ago

Can anyone provide a codesandbox or something similar that shows the problem, testing on version 1.2.1 and i can modify the theme accordingly without a problem.

would also be helpful to know what React, Node and webpack version you are using.

farahat80 commented 2 years ago

Issue fixed with v1.3.0