If you have an ancient version of Chrome, before Chome 89, you'll need to enable the Serial API, which is easy.
Visit chrome://flags from within Chrome. Find and enable the Experimental Web Platform features
Restart Chrome