diff --git a/scripts/webpack/webpack.dev.js b/scripts/webpack/webpack.dev.js index aea468e7959..df92c8d811c 100644 --- a/scripts/webpack/webpack.dev.js +++ b/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'), }, },