C:\laragon\www\david\wp-content\themes\david-azran>yarn build
yarn run v1.22.17
$ 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:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:28298:14)
at readFile (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:28295:12)
at C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:116224:12
at new Promise (<anonymous>)
at readFile (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:116223:14)
at Object._readFile (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:83424:58)
at Object._readFile (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud-support\lib\cjs\index.js:116237:45)
at Manifest.read (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud\lib\cjs\context\manifest.js:10:33)
at makeContext (C:\laragon\www\david\wp-content\themes\david-azran\node_modules\@roots\bud\lib\cjs\context\index.js:31:58) {
code: 'ERR_INVALID_ARG_TYPE'
}
Config File:
/**
* @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'],
})
/**
* 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('http://david.loc')
/**
* Development URL
*/
.serve('http://david.loc');
};
What’s the problem I have ?