I condensed my code down to the following script to show the error:
const request = indexedDB.open("myDatabase",10); request.onupgradeneeded = f