Hi there.
I run into an issue when trying to compile my project using Yarn.
I have followed the instructions as seen here: (GitHub - roots/sage: WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow)
PS C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup> yarn build
yarn run v1.22.5
$ bud build
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at readFile (node:fs:393:10)
at go$readFile (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:28298:14)
at readFile (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:28295:12)
at C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:116224:12
at new Promise (<anonymous>)
at readFile (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:116223:14)
at Object._readFile (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:83424:58)
at Object._readFile (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud-support\lib\cjs\index.js:116237:45)
at Manifest.read (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud\lib\cjs\context\manifest.js:10:33)
at makeContext (C:\Users\super\Local Sites\hjallerup-marked\app\public\wp-content\themes\hjallerup\node_modules\@roots\bud\lib\cjs\context\index.js:31:58) {
code: 'ERR_INVALID_ARG_TYPE'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have edited my bud.config.js with my local project url
/**
* Target URL to be proxied by the dev server.
*
* This is your local dev server.
*/
.proxy('http://hjallerup-marked.test')
/**
* Development URL
*/
.serve('http://localhost:3000');
I’m at kinda stuck right now. Maybe someone can help me here.
Thanks.