"Unknown type "Slider"" error, but I already imported JuceHeader.h

I just downloaded JUCE for a college course and I was trying out a plugin my professor wrote (on Windows), but as I was typing his same exact code, which worked for him, I got this error:

Unknown type “Slider”

This error goes away when I add juce::, but it doesn’t make sense considering I already imported JuceHeader and it works on my professor’s code, so there has to be some underlying error.

I’m working on Ventura 13.2.1 and Xcode 14.3

There is an option for using namespace juce which can be enabled or disabled. You can enable or disable it in the projucer, but I would consider not using it. That way you can easily distinguish between your code and juce code.