I’m developing a new site with LocalWP as my dev environment. Since updating bud to 5.7.4, I’m getting TypeError: Invalid URL when visiting the server url (http://localhost:62820/)
Console output:
✘ ~/Local/wervel/app/www/app/themes/wervel staging ± yarn dev
yarn run v1.22.17
$ bud dev
[99%] [done] MultiCompiler plugins
┌ assets ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ ✔ vendor/app vendor/app.js 2.12 MB │
│ ✔ editor editor.js 279.17 kB │
│ ✔ app app.js 238.79 kB │
│ ✔ vendor/bud.app.editor vendor/bud.app.editor.js 50.47 kB │
│ ✔ ᠃ resources/images/aardappelen.jpeg 554.75 kB │
│ ✔ ᠃ resources/images/Vlaanderen_verbeelding werkt.svg 7.45 kB │
│ ✔ ᠃ resources/images/wervel-logo.svg 5.19 kB │
│ ✔ ᠃ manifest.json 351 bytes │
│ ✔ ᠃ entrypoints.json 125 bytes │
│ ✔ ᠃ wordpress.json 33 bytes │
│ │
│ │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
duration 4s 732ms
mode development hash 568d666cc176ecb8ad08
bud 5.7.4 webpack 5.70.0
server url: http://localhost:62820/
proxy url: https://wervel.local/
[99%] [cache] begin idle
┏ TypeError ━━━━━━┓
┃ ┃
┃ ┃
┃ Invalid URL ┃
┃ ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━┛
✨ Done in 8.99s.
bud.config.js:
/**
* @typedef {import('@roots/bud').Bud} bud
*
* @param {bud} app
*/
module.exports = async (app) => {
app
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app'],
editor: ['@scripts/editor', '@styles/editor'],
})
.when(app.isProduction, app => {
app.purgecss({
enabled: false,
content: [
app.path('resources/views/**/*.blade.php'),
app.path('app/**/*.php'),
app.path('index.php'),
],
safelist: require('purgecss-with-wordpress').safelist.concat(require('./purge-safelist').safelist),
})
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets(['images'])
/**
* These files will trigger a full page reload
* when modified.
*/
.watch('resources/views/**/*', 'app/**/*')
/**
* Target URL to be proxied by the dev server.
*
* This is your local dev server.
*/
.proxy('https://wervel.local');
};
I have tried proxying the http:// instead of https://, but this triggers the same error. After rolling back to 5.7.3, it works fine.