Roots Discourse

Sage 10 problem with WP-admin Customizer

roots/sage version: dev-master acb7bc59a25ee4ca7b722af776bb28858b1f7ecc (sage 10)

When I install a fresh Sage 10 theme on a fresh Wordpress 5.8 installation and go to the Customizer (/wp-admin/customize.php?return=%2Fwp-admin%2Fthemes.php) I get the following error:

Illuminate \ Contracts \ Filesystem \ FileNotFoundException

Asset [/Users/kevin/Local Sites/sage10/app/public/wp-content/themes/sage10/public/scripts/manifest.asset.php] not found.

Issue is raised by the following code in app/setup.php:

if ($manifest = asset('scripts/manifest.asset.php')->load()) {

in this function:

add_action('enqueue_block_editor_assets', function () {
    if ($manifest = asset('scripts/manifest.asset.php')->load()) {
        wp_enqueue_script('sage/vendor.js', asset('scripts/vendor.js')->uri(), ...array_values($manifest));
        wp_enqueue_script('sage/editor.js', asset('scripts/editor.js')->uri(), ['sage/vendor.js'], null, true);
 
        wp_add_inline_script('sage/vendor.js', asset('scripts/manifest.js')->contents(), 'before');
    }
 
    wp_enqueue_style('sage/editor.css', asset('styles/editor.css')->uri(), false, null);
}, 100);

Have you run the build process?