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:
Below is my tsconfig.json
{
"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
{
"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