WebpackDev: Resolve react-router-dom from local node modules (#89547)

resolve react-router-dom from local node modules
This commit is contained in:
Sergej-Vlasov 2024-07-04 13:28:54 +03:00 committed by GitHub
parent bcb168c39d
commit 8f99d58aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,10 @@ module.exports = (env = {}) => {
// the same singletons
'@grafana/runtime': path.resolve(__dirname, '../../packages/grafana-runtime'),
'@grafana/data': path.resolve(__dirname, '../../packages/grafana-data'),
// This is required to correctly resolve react-router-dom when linking with
// local version of @grafana/scenes
'react-router-dom': path.resolve('./node_modules/react-router-dom'),
},
},