│ ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. │
│ - configuration[0].resolve.modules[2] should be a non-empty string. │
│ -> Folder name or directory path where to find modules. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Thanks a lot ,
It is working now fine with little problem
: Error occured while trying to proxy: localhost:3000/
[sage] [bud.server] › ✖ [HPM] Error occurred while proxying request localhost:3000/ to http://store.local/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
[sage] [bud.server] › ✖ [HPM] Error occurred while proxying request localhost:3000/favicon.ico to http://store.local/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
my bud.confing.js :
/**
* @typedef {import('@roots/bud').Bud} Bud
*
* @param {Bud} config
*/
module.exports = async (config) =>
config
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['scripts/app.js', 'styles/app.css'],
editor: ['scripts/editor.js', 'styles/editor.css'],
customizer: 'scripts/customizer.js',
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets(['assets/images'])
/**
* These files will trigger a full page reload
* when modified.
*/
.watch([
'tailwind.config.js',
'resources/views/*.blade.php',
'app/View/**/*.php',
])
/**
* Target URL to be proxied by the dev server.
*
* This is your local dev server.
*/
.proxy({target: 'http://store.local'});
I have the same issue, building inside a WSL 2 instance on Linux file system.
✖ @roots/bud-postcss manifest cannot be resolved
rendering dashboard
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration
object that does not match the API schema.
- configuration[0].resolve.modules[4] should be a object { alias?, aliasFields?, byDependency?,
cache?, cachePredicate?, cacheWithContext?, conditionNames?, descriptionFiles?, enforceExtension?,
exportsFields?, extensions?, fallback?, fileSystem?, fullySpecified?, importsFields?, mainFields?,
mainFiles?, modules?, plugins?, preferAbsolute?, preferRelative?, resolver?, restrictions?, roots?,
symlinks?, unsafeCache?, useSyncFileSystemCalls? }.
-> Folder name or directory path where to find modules.
✖ @roots/bud-postcss manifest cannot be resolved
Edit: Alright, so in my case I had to install the packages using yarn, not npm. yarn installs the packages differently than npm.
Running on windows 10, installed packages with yarn
Still this error:
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration[0].resolve.modules[2] should be a non-empty string.
-> Folder name or directory path where to find modules.