Yarn Run Build cmd throws error

Hi

When running yarn run build cmd I receive the following error:

   SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (V:\oam\wp-content\themes\oam_sage\resources\assets\bu

ild\webpack.config.js:9:25)
at Module._compile (module.js:413:34)
at Object.Module._extensions…js (module.js:422:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.

  • I have cleared my node_modules folder and re-installed yarn … Still getting the same error.

Thanks,
Dev