Hi Everyone!
I’ve been trying to set up a new project and everything works in terms of compiling the assets using WSL, but one thing that I can’t get to work is the live reload part of the bud configuration, my current setup in bud.config.mjs is:
/**
* Build configuration
*
* @see {@link https://bud.js.org/guides/getting-started/configure}
* @param {import('@roots/bud').Bud} app
*/
export default async (app) => {
app
/**
* Application entrypoints
*/
.entry({
app: ["@scripts/app", "@styles/app"],
editor: ["@scripts/editor", "@styles/editor"],
})
/**
* Directory contents to be included in the compilation
*/
.assets(["images"])
/**
* Matched files trigger a page reload when modified
*/
.watch(["resources/views/**/*", "app/**/*"])
/**
* Proxy origin (`WP_HOME`)
*/
.proxy("http://localhost/my-new-project")
/**
* Development origin
*/
.serve("http://localhost:3000/my-new-project")
/**
* URI of the `public` directory
*/
.setPublicPath("/app/themes/sage/public/");
};
But the error I get is the following:
I have Sage and Bud on version 6.3.3. Any ideas?
Thanks!