Running into an issue running yarn build
when deploying a new Sage 10 site, same command is working just fine in a local environment. Not sure what invalid URL the error in question here is referring to:
$ bud build
[?25l⠼
[?25l⠇
[@roots/bud-preset-wordpress] › ✖ TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:372:5)
at URL.onParseError (node:internal/url:553:9)
at parse (<anonymous>)
at new URL (node:internal/url:629:5)
at Object.set origin [as origin] (file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-preset-wordpress/lib/extension.js:10:57)
at Object.init (file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-preset-wordpress/lib/extension.js:15:21)
at Object._init (file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-framework/lib/extension/index.js:63:24)
at async Extensions.run (file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-extensions/lib/service.js:214:13)
at async file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-extensions/lib/service.js:271:13
at async file:///source/web/app/themes/custom-made-beanies/node_modules/@roots/bud-extensions/lib/service.js:270:13
[bud@6.3.5] [bud] › ✖ error in @roots/bud-preset-wordpress
here’s my package contents:
"devDependencies": {
"@popperjs/core": "^2.11.5",
"@roots/bud": "6.3.5",
"@roots/bud-sass": "^6.3.4",
"@roots/sage": "6.3.5",
"bootstrap": "^5.2.0"
},
"dependencies": {
"glightbox": "^3.2.0",
"gsap": "^3.10.3",
"imagesloaded": "^5.0.0",
"isotope-layout": "^3.0.6",
"swiper": "^8.0.7",
"vanilla-lazyload": "^17.8.1"
}
Both yarn dev & yarn build are working locally, this seems to only be happening when building assets in deploybot for deployments.