Trying to execute yarn build
Encountering the following error:
yarn run v1.22.4
$ webpack --progress --config resources/assets/build/webpack.config.js
\wp-content\themes\portfolio\node_modules\webpack-cli\bin\cli.js:93
throw err;
^
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at mergeTo (\wp-content\themes\portfolio\node_modules\webpack-merge\dist\merge-with.js:30:24)
at \wp-content\themes\portfolio\node_modules\webpack-merge\dist\merge-with.js:23:15
at Array.forEach (<anonymous>)
at Object.mergeWith [as default] (\wp-content\themes\portfolio\node_modules\webpack-merge\dist\merge-with.js:22:10)
at mergeWithOptions (\wp-content\themes\portfolio\node_modules\webpack-merge\dist\index.js:71:39)
In my config.js file, I am importing webpack-cli
const { merge } = require('webpack-merge');
Version information for webpack packages:
"webpack": "~4.44.2",
"webpack-assets-manifest": "^3.1.1",
"webpack-cli": "^3.3.12",
"webpack-merge": "~5.1.4",
This issue started occurring after updating the webpack-cli version.