Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix css/js errors in console #141

Open
nathan-schmidt-viget opened this issue Jul 31, 2024 · 0 comments
Open

Fix css/js errors in console #141

nathan-schmidt-viget opened this issue Jul 31, 2024 · 0 comments
Assignees

Comments

@nathan-schmidt-viget
Copy link
Contributor

nathan-schmidt-viget commented Jul 31, 2024

Console log error

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

@nathan-schmidt-viget nathan-schmidt-viget self-assigned this Jul 31, 2024
@nathan-schmidt-viget nathan-schmidt-viget changed the title Making custom css/js the last thing in the head Fix css/js errors in console Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant