Skip to content

Uncaught TypeError: hyva.alpineInitialized is not a function

I’m trying to set hyva default theme as theme for a store on local environment. I have a clean install of magento 2.4.7, but it seems that the blocks about head.additional are not added to the page layout. These blocks are defined in the file

vendor/hyva-themes/magento2-theme-module/src/view/frontend/layout/default_hyva.xml

Furthermore I have this error on browser console

Uncaught TypeError: hyva.alpineInitialized is not a function

And I see the method alpineInitialized() is defined in the template hyva.phtml, not injected on layout.
Do you have any suggestion in order to solve this issue?
thanks