Can’t run yarn build —watch

Posted by Ife Odugbesan

over 2 years ago

0

yarn ruby webpack rails

Error message:

ERROR: Command "build" not found.


It's possible that you may be missing a script in your package.json which allows you to run build

Try adding this code into the object in your package.json

"scripts": {
  "build": "webpack --config webpack.config.js"
}