My stylesheet for my React project isn't applying correctly to only one of my components. It works for other components, it also works for ALL the components when my coworkers are running the project, this seems to be a problem for only me. What could be causing this issue?
-
The main issue is that the same path is working for all my coworkers because we are using the same repo. None of them have this issue (specifically the component is a popup, which works for them but when I'm running it in my Visual Studio it just puts the component on the page in place instead of using the css in the stylesheet to show it as a popup) –Lernest– Lernest2021-10-14 19:58:18 +00:00Commented Oct 14, 2021 at 19:58
-
2It could be your browser caching the previous CSS did you do something like empty cache and hard reload?SoroushOwji– SoroushOwji2021-10-14 20:00:39 +00:00Commented Oct 14, 2021 at 20:00
Add a comment
|
2 Answers
As SoroushOwji commented, the browser was caching the previous CSS. The solution was to empty the cache and do a hard reload.
Comments
Look at import in that component, maybe the path of css is wrong write, is better if some code is showed, then we can exactly say wich problem is!
1 Comment
Community
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.