I had the same problem, i just had to delete client:load from my .astro component and the error disappear. :)