With the new version of WP there is now a script with type="importmap" and our script has type="module" and type module can not come before any importmap types.
This can be fixed in the class-vite.php by setting 100 for wp_head.
add_action( 'wp_head', [ $this, 'init' ], 100 );
Vite twise
We are also calling Vite() twice which is loading everything twice.
Classes missing in preview
Remove is_preview() from acf-blocks-toolkit/includes/helpers.php
Console log error
With the new version of WP there is now a script with
type="importmap"
and our script hastype="module"
and type module can not come before anyimportmap
types. This can be fixed in theclass-vite.php
by setting100
for wp_head.add_action( 'wp_head', [ $this, 'init' ], 100 );
Vite twise
We are also calling
Vite()
twice which is loading everything twice.Classes missing in preview
Remove
is_preview()
fromacf-blocks-toolkit/includes/helpers.php