Photon Vision Compilation Error

We are in the process of getting Photon Vision running within our code. However even though there are no errors that appear when trying to compile VS code spits out the error

Task :discoverroborio
Discovering Target roborio
Using [email protected]:22 for target roborio

Task :compileJava FAILED
C:\Users\Murphalicious\Desktop\FRC-2023 CHARGED UP V2\src\main\java\frc\robot\subsystems\photonSubsystem.java:46: error: cannot access ProtobufSerializable
boolean hasTargets = result.hasTargets();
^
class file for edu.wpi.first.util.protobuf.ProtobufSerializable not found
1 error
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileJava).
Check that all your files are saved, then scroll up in this log for more information.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 2s
2 actionable tasks: 2 executed

This is the repository where our code is stored. The code that errors is located in the photonSubsystem file.

You only uploaded your source files, so I can’t confirm, but I suspect you’re trying to use 2024 photonvision with 2023 wpilib.