1

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?

2
  • 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) – Commented Oct 14, 2021 at 19:58
  • 2
    It could be your browser caching the previous CSS did you do something like empty cache and hard reload? Commented Oct 14, 2021 at 20:00

2 Answers 2

1

As SoroushOwji commented, the browser was caching the previous CSS. The solution was to empty the cache and do a hard reload.

Sign up to request clarification or add additional context in comments.

Comments

0

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.