Cannot read properties of undefined (reading 'call') at o (kbn-ui-shared-deps-npm.dll.js:1:388) - when installing plugin in 8.8.1 and 8.5.3


I am developing a custom plugin using React, in Kibana main branch.

I did yarn build for 8.5.3 and 8.8.1 versions of Kibana, and installed the same in the respective versions.

But in both the versions, I get the following error in the browser console:

Below is my tsconfig.json

  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "outDir": "./target/types"
  "include": [
    "../../typings/**/*" ],
  "exclude": [],
  "kbn_references": [

Below is my plugin package.json

  "name": "abcde",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "yarn plugin-helpers build",
    "dev": "yarn plugin-helpers dev",
    "plugin-helpers": "node ../../scripts/plugin_helpers",
    "kbn": "node ../../scripts/kbn"
  "dependencies": {
    "axios": "^1.3.4",
    "file-saver": "^2.0.5",
    "node-localstorage": "^2.2.1",
    "react-full-screen": "^1.1.1",
    "react-redux": "^8.0.5",
    "react-router": "^6.12.1",
    "react-router-dom": "^6.12.1"
  "devDependencies": {
    "@types/node-localstorage": "^1.3.0",
    "stacktrace-parser": "^0.1.10"


Can anyone pls look into this? Do I have to change anything in code ?

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