Unable to build grafana plugin on linux (ubuntu)

I have developed a grafana plugin which works fine on windows but when i try to build it on linux (ubuntu), i get the following error

yarn run v1.21.1
$ grafana-toolkit plugin:build
:heavy_check_mark: Cleaning
:heavy_check_mark: Preparing
:heavy_check_mark: Prettier check
⠋ Linting

  Trace: TypeError: f.getRuleSeverity is not a function
      at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/tasks/plugin.build.js:179:44
      at Array.forEach (<anonymous>)
      at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/tasks/plugin.build.js:177:34
      at step (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:136:27)
      at Object.next (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:117:57)
      at fulfilled (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:107:62)
      at /aedata/ae/grafana/plugins/simple-react-panel/node_modules/@grafana/toolkit/src/cli/utils/useSpinner.js:24:29
      at step (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:136:27)
      at Object.throw (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:117:57)
      at rejected (/aedata/ae/grafana/plugins/simple-react-panel/node_modules/tslib/tslib.js:108:69)
✖ f.getRuleSeverity is not a function
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.