Yarn run error

Hi All,

I am getting an error when I run “yarn run” command, “yarn build” runs successfully but yarn run fails, below is the error message.

yarn run v1.12.3
$ webpack --hide-modules --watch --config resources/assets/build/webpack.conf ig.js
internal/modules/cjs/loader.js:582
throw err;
^

Error: Cannot find module ‘E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\resources\assets\build\webpack.conf’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at requireConfig (E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:97:18)
at E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:104:17
at Array.forEach ()
at module.exports (E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:102:15)
at yargs.parse (E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\webpack.js:171:41)
at Object.Yargs.self.parse (E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\node_modules\yargs\yargs.js:533:18)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
PS E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name>

can anyone help me to fix this? Thanks in advance.

This topic was automatically closed after 42 days. New replies are no longer allowed.