My install of Sage is looking good. I’m running locally using Laravel Valet. But HMR and Browsersync aren’t behaving as expected. It seems that my styles aren’t being compiled on save. Furthermore, I’m receiving this error when running yarn dev
in my theme directory:
BudError
✘ options.port should be >= 0 and < 65536. Received type number (NaN).
╭ sage [4027a20fb5c83afa] ./public
│
│ app
│ ◉ js/runtime.js 43.93 kB
│ ◉ js/app.js 80.03 kB
│
│ editor
│ ◉ js/runtime.js 43.93 kB
│ ◉ js/editor.js 59.12 kB
│
╰ 921ms 39 modules [0/39 modules cached]
How can I debug this? Do I need to fix my bud.config.js?
I’ve added the URLs to bud.config.js but I’m not sure if I’m doing it correctly:
app
.setUrl('https://wordpressonvalet.test')
.setProxyUrl('https://wordpressonvalet.test')
.watch(['resources/views', 'app']);
One potential issue is I don’t know what to set my public path to. Neither of these make any difference in fixing the error:
app.setPublicPath('/app/themes/sage/public/');
app.setPublicPath('./public/');
Anyone know what’s going on? I appreciate any help!