ERR_INVALID_ARG_TYPE while running 'yarn dev'

I am sure I’m missing something while running yarn dev, but I can’t figure it out. I’m also getting a lots of warnings while running yarn and I don’t think that this is normal. What am I doing wrong?

See below for the warning and error ↓

Running yarn

yarn install v1.22.18
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @roots/bud > @roots/bud-server > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@roots/bud > @roots/bud-build > remark-loader@4.0.0" has incorrect peer dependency "remark@^12.0.0 || ^13.0.0".
warning "@roots/bud-tailwindcss > autoprefixer@10.4.4" has unmet peer dependency "postcss@^8.1.0".
warning "@roots/bud-tailwindcss > tailwindcss@3.0.23" has unmet peer dependency "postcss@^8.0.9".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-babel > babel-loader@8.2.4" has unmet peer dependency "webpack@>=2".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/plugin-syntax-jsx@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/preset-react@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @pmmmwh/react-refresh-webpack-plugin@0.5.4" has unmet peer dependency "webpack@>=4.43.0 <6.0.0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/preset-react > @babel/plugin-transform-react-display-name@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/preset-react > @babel/plugin-transform-react-jsx@7.17.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/preset-react > @babel/plugin-transform-react-pure-annotations@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-react > @babel/preset-react > @babel/plugin-transform-react-jsx-development@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-preset-recommend > @roots/bud-postcss > postcss-loader@6.2.1" has unmet peer dependency "webpack@^5.0.0".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-entrypoints > @roots/entrypoints-webpack-plugin@5.7.6" has unmet peer dependency "webpack@>=5".
warning "@roots/sage > @roots/bud-preset-wordpress > @roots/bud-wordpress-externals > @roots/wordpress-externals-webpack-plugin@5.7.6" has unmet peer dependency "webpack@^5.47.1".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
success Saved lockfile.
Done in 33.26s.

Running yarn dev

yarn run v1.22.18
$ bud dev
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\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:28298:14)
    at readFile (C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:28295:12)
    at C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:116212:12
    at new Promise (<anonymous>)
    at readFile (C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:116211:14)
    at Object._readFile (C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:83424:58)
    at Object._readFile (C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud-support\lib\cjs\index.js:116225:45)
    at Manifest.read (C:\laragon\www\bedrock\web\app\themes\sage\node_modules\@roots\bud\lib\cjs\context\manifest.js:10:33)
    at makeContext (C:\laragon\www\bedrock\web\app\themes\sage\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.

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'],
    })

    /**
     * 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 should be the URL you use to visit your local development server.
     */
    .proxy('http://bedrock.test')

    /**
     * Development URL to be used in the browser.
     */
    .serve('http://localhost:3000');
};

It seems like you need to run on WSL and that is the fix.