It says that property "clamp" is undefined,
no, it does not.
with error messages it is extremely important what they truly say and not just read the wrong words.
it says "cannot read property clamp of undefined."
That means it is missing the "parent" of clamp, not that clamp itself is undefined.
so you would have to look for the thing that clamp is supposed to be a part of, because that is what is undefined. And that is also why your search for clamp went wrong...
Perhaps you can understand it better with a more practical example:
let's say for displaying something you need to know the width of a picture. that would usually be picture.width
and if you have no picture and try to find its width, the computer would answer "cannot read property width of undefined", meaning that the picture itself is undefined or missing