SkyAtmosphereViewLuminance node causing errors

I’m currently following this tutorial (https://youtu.be/8jA8wa9ERpA?si=9FEQEpiECYZpab6_) to create a day/night cycle for my project. Both of my SkyAtmosphereViewLuminance nodes are causing the “[SM6] (Node SkyAtmosphereViewLuminance) External code identifier ‘CameraVector’ is not available in the EMaterialShaderFrequency::Vertex shader.” error. Both nodes have a world direction input which is not shown in the documentation for this node, only in the aerial perspective node. Any help on how to stop this error would be appreciated, I’m using 5.6.