Errors when using plugin build with 8.0.3 libs

Seeing this on plugin configuration page:

Fetch error: 404 Not Found Instantiating http://grafana.staged-by-discourse.com/public/@emotion/react Loading http://grafana.staged-by-discourse.com/public/plugins/deltix-timebase-datasource-plugin/module.js Loading plugins/deltix-timebase-datasource-plugin/module

Any idea why is this happening? Don’t see anything that could help both in logs or in dev console.

My package.json:

{
  "name": "deltix-timebase-datasource-plugin",
  "version": "1.0.0",
  "scripts": {
    "build": "grafana-toolkit plugin:build",
    "test": "grafana-toolkit plugin:test",
    "dev": "grafana-toolkit plugin:dev",
    "watch": "grafana-toolkit plugin:dev --watch",
    "sign": "grafana-toolkit plugin:sign",
    "start": "yarn watch"
  },
  "author": "EPAM RTC Lab",
  "license": "Apache-2.0",
  "engines": {
    "node": ">=12 <=13"
  },
  "devDependencies": {
    "@grafana/data": "latest",
    "@grafana/toolkit": "latest",
    "@grafana/ui": "latest",
    "@grafana/runtime": "latest",
    "@types/lodash": "latest",
    "@types/react-select": "^4.0.15",
    "@testing-library/jest-dom": "5.4.0",
    "@testing-library/react": "^10.0.2",
    "@emotion/react": "11.1.5",
    "classnames": "^2.3.1",
    "fast-deep-equal": "^3.1.3",
    "react-select": "4.3.0",
    "react-select-async-paginate": "^0.4.0",
    "tslib": "^2.3.0"
  }
}```

Have you tried deleting the node_modules folder and re-running yarn build?

Sure, nothing helps. Actually here it is. Build is fine.

this was mentioned in the Grafana slack as a potential fix for this:

cd /var/lib/grafana
chmod -R o-x plugins

That hasn’t helped. Looks like “@emotion/react” couldn’t be loaded. I doubt that the problem is in plugins dir permissions.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.