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

resolve react-router-dom from local node modules
pull/90047/head
Sergej-Vlasov 2 years ago committed by GitHub
parent bcb168c39d
commit 8f99d58aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      scripts/webpack/webpack.dev.js

@ -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'),
},
},

Loading…
Cancel
Save