Sage 9 page-template not working on wordpress 6.4

I was able to address this by adding the following to resources/functions.php:

add_filter('stylesheet_directory', function ($tdir, $temp, $root) use ($sage_views) {
    if (!str_contains($tdir, 'views')) {
        $tdir .= '/views';
    }
   return $tdir;
}, 10, 3);

and modifying app/setup.php near line 136 like:

    config([
        // 'assets.manifest' => "{$paths['dir.stylesheet']}/../dist/assets.json",
        // Bug fix for WP 6.4.2. See https://core.trac.wordpress.org/ticket/60025
        'assets.manifest' => "{$paths['dir.stylesheet']}/../../dist/assets.json",
...
2 Likes