Install Grafana mqtt-datasource on Ubuntu - plug-in not showing up on search

When I do a yarn build I get the following:

shock@raspberrypi:~/go/bin/grafana-plugins/mqtt-datasource $ yarn build
yarn run v1.22.19
$ rm -rf dist && grafana-toolkit plugin:build && mage build:backend

:warning: DEPRECATED. This command is deprecated and will be removed in v10. :warning:
Please migrate to grafana create-plugin plugin-tools/packages/create-plugin at main · grafana/plugin-tools · GitHub

Using Node.js v18.16.0
Using @grafana/toolkit v9.5.2
:heavy_check_mark: Preparing
:heavy_check_mark: Linting
FAIL src/handleEvent.test.ts
● Test suite failed to run

TypeError: Cannot redefine property: window

  at Object.<anonymous> (node_modules/jest-canvas-mock/lib/index.js:21:17)
  at async TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
  at async runJest (node_modules/@jest/core/build/runJest.js:404:19)
  at async _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
  at async runCLI (node_modules/@jest/core/build/cli/index.js:173:3)

Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 3.067 s
Ran all test suites with tests matching “”.
:heavy_multiplication_x: Tests failed
Trace: Error: Tests failed
at /home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/@grafana/toolkit/src/cli/tasks/plugin/tests.js:29:19
at Generator.next ()
at fulfilled (/home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/tslib/tslib.js:115:62)
at /home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/@grafana/toolkit/src/cli/utils/useSpinner.js:20:21
at Generator.throw ()
at rejected (/home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/tslib/tslib.js:116:69)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

anybody have an idea why I am getting this error condition?

I’m running Raspberry Pi OS 64 bit .

if you need any information please ask.