# 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

**URL:** <https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-call-at-o-kbn-ui-shared-deps-npm-dll-js388-when-installing-plugin-in-8-8-1-and-8-5-3/336894>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [June 26, 2023, 10:21am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-call-at-o-kbn-ui-shared-deps-npm-dll-js388-when-installing-plugin-in-8-8-1-and-8-5-3/336894 "2023-06-26T10:21:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [June 26, 2023, 10:21am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-call-at-o-kbn-ui-shared-deps-npm-dll-js388-when-installing-plugin-in-8-8-1-and-8-5-3/336894/1 "2023-06-26T10:21:42Z")

</div>

Hi,

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:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/1/014ee3331ed0622f3f17340fa9230eb58252702e.png)

**Below is my tsconfig.json**

```auto
{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "outDir": "./target/types"
  },
  "include": [
    "index.ts",
    "common/**/*.ts",
    "public/**/*.ts",
    "public/**/*.tsx",
    "server/**/*.ts",
    "../../typings/**/*" ],
  "exclude": [],
  "kbn_references": [
    "@kbn/shared-ux-router",
    "@kbn/i18n-react",
    "@kbn/core/public",
    "@kbn/kibana-utils-plugin/common",
    "@kbn/navigation-plugin",
    "@kbn/data-plugin",
    "@kbn/kibana-react-plugin",
    "@kbn/kbn-top-nav-plugin",
    "@kbn/shared-ux-chrome-navigation",
    "@kbn/kbn-top-nav-plugin"
  ]
}

```

**Below is my plugin package.json**

```auto
{
  "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"
  }
}

```

Thanks

---

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [June 29, 2023, 10:01am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-call-at-o-kbn-ui-shared-deps-npm-dll-js388-when-installing-plugin-in-8-8-1-and-8-5-3/336894/2 "2023-06-29T10:01:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2023, 10:01am UTC](https://discuss.elastic.co/t/cannot-read-properties-of-undefined-reading-call-at-o-kbn-ui-shared-deps-npm-dll-js388-when-installing-plugin-in-8-8-1-and-8-5-3/336894/3 "2023-07-27T10:01:34Z")

</div>

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