There are a number of possible reasons. 1.) check that you are not including alpineJs script multiple times by chance. 2.) include defer keyword in your alpineJs script as seen from this solution here