The version of OpenLayers in the Getting Started guide is out of date: https://tegola.io/tutorials/tegola-with-open-layers/ This should be updated to the most recent version (as of writing this 6.3.1)