Using camera-controls and jQuery

Hello, I need to use the camera-controls three.js library but the script was loaded using jquery in this way:

<script src="js/camera-controls.min.js"></script>
<script src="js/three/three.js"></script>
<script type="text/javascript">
              $.getScript('js/threeapp.js?v=' + new Date(), function (data, textStatus, jqxhr) { });             

In the script threeapp.js the object camera control is defined like:

camera = new THREE.PerspectiveCamera(45, container.clientWidth / container.clientHeight, 1, 1000);
renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true});
//inside init function:
const cameraControls = new CameraControls( camera, renderer.domElement );

However when running, it breaks at the definition of cameraControls, giving this error:

  Uncaught TypeError: Cannot read properties of undefined (reading 'DEG2RAD')
    at CameraControls._updateNearPlaneCorners (camera-controls.min.js:7:43403)

Other three.js libraries work just fine within this schema, so I do not get what is wrong in this case with camera-controls.
Thank you beforehand for the help.