Error using AR hittest demo

The above link works completely fine when I visit it, but when I copy the exact same code and replace the modules with modules from cdn I get the following error:

Error: Failed to execute ‘requestHitTestSource’ on ‘XRSession’: Hit test feature is not supported by the session

Fixed it by downloading the files from GitHub and importing them locally.