Why is there an error in a built in script?

a lot of times this will happen when code in a package is for one version of Unity and you have installed it on a different version of Unity. Sometimes the Unity API can change from one version to another.

Making sure you have the most recent version of the package available for your current Unity version might help.