Hi Ritesh,
Just ran this without issue:
========
[sdickers@ghost test]$ rpm -q nodejs
nodejs-10.16.3-1.fc30.x86_64
[sdickers@ghost test]$ rpm -q yarn
yarn-1.19.1-1.noarch
[sdickers@ghost test]$ git clone
https://gerrit.ovirt.org/ovirt-engine-ui-extensionsCloning into 'ovirt-engine-ui-extensions'...
remote: Counting objects: 4, done
remote: Total 669 (delta 0), reused 669 (delta 0)
Receiving objects: 100% (669/669), 1.13 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (182/182), done.
[sdickers@ghost test]$ cd ovirt-engine-ui-extensions/
[sdickers@ghost ovirt-engine-ui-extensions]$ yarn
yarn install v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "patternfly-react > table-resolver@3.3.0" has unmet peer dependency "redux@>= 3.0.0 < 4.0.0".
[4/4] Building fresh packages...
Done in 12.18s.
[sdickers@ghost ovirt-engine-ui-extensions]$ yarn build
yarn run v1.19.1
$ yarn test
$ yarn lint
$ eslint . --ext js,jsx
Warning: React version not specified in eslint-plugin-react settings. See
https://github.com/yannickcr/eslint-plugin-react#configuration .
$ NODE_ENV=test jest --no-watch
<snip the jest output>
Test Suites: 5 passed, 5 total
Tests: 52 passed, 52 total
Snapshots: 0 total
Time: 4.153s
Ran all test suites.
$ NODE_ENV=production webpack --config webpack.prod.js
production webpack configuration:
<snip the webpack output>
Done in 46.59s.
[sdickers@ghost ovirt-engine-ui-extensions]$ ls -1 dist
ui-extensions.json
ui-extensions-resources
========
Make sure your node and yarn are all ok. I've never had the problem you are showing.
If still doesn't work, maybe you have webpack, babel, eslit or jest installed globally and it's getting picked up from the wrong place?