I am trying to create a new Datasource Plugin by using the @grafana/toolkit as described there, to test it with the newly-released Grafana 7.0. The first three steps work as expected, however running
yarn dev throws a
TypeError as shown below:
After googling the error, many posts such as this one in SO suggested deleting
"react-scripts": "^3.4.0" as a dependency, and running
yarn install and
yarn dev again. However, the problem continued persisting.
yarn 1.22.4 running on a Windows 10 machine, with WebStorm as my main IDE. I was also able to use
@grafana/toolkit as suggested a couple of months ago (either the 6.7.2 or the 6.7.3 version) and it was building without any issues.
Thanks in advance for the help. Best,