Hi,
I am developing a custom plugin in React.
I am using a different version of React Router in my plugin, than the one being used by kibana.
Kibana - react-router v5
Plugin - react-router v6
versions.json in kibana source code folder
{
"notice": "This file is not maintained outside of the main branch and should only be used for tooling.",
"versions": [
{
"version": "8.9.0",
"branch": "main",
"currentMajor": true,
"currentMinor": true
},
{
"version": "8.8.2",
"branch": "8.8",
"currentMajor": true,
"previousMinor": true
},
{
"version": "7.17.11",
"branch": "7.17",
"previousMajor": true
}
]
}
Router packages in package.json of Kibana folder
cat ../../package.json | grep router
"@kbn/core-http-router-server-internal": "link:packages/core/http/core-http-router-server-internal",
"@kbn/shared-ux-router": "link:packages/shared-ux/router/impl",
"@kbn/shared-ux-router-mocks": "link:packages/shared-ux/router/mocks",
"@kbn/shared-ux-router-types": "link:packages/shared-ux/router/types",
"@kbn/typed-react-router-config": "link:packages/kbn-typed-react-router-config",
"react-router": "^5.2.0",
"react-router-config": "^5.1.1",
"react-router-dom": "^5.2.0",
"@kbn/core-http-router-server-mocks": "link:packages/core/http/core-http-router-server-mocks",
"@types/react-router": "^5.1.7",
"@types/react-router-config": "^5.0.2",
"@types/react-router-dom": "^5.1.5",
Router packages in package.json of my plugin folder
"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