From 739d8418a72ffce5f6e07fc649afe54d1b4fc658 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:47:07 +0200 Subject: [PATCH] fix(build): make npm linking work pt. 2 (#16958) * fix(build): make npm linking work pt. 2 * remove explicit symlinks conf --- superset-frontend/webpack.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 440812b6e6cd5..2a5f89e5040d1 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -289,9 +289,9 @@ const config = { APP_DIR, './node_modules/@superset-ui/chart-controls', ), + react: path.resolve('./node_modules/react'), }, extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'], - symlinks: false, fallback: { fs: false, vm: false, @@ -455,7 +455,6 @@ if (isDevMode) { }, static: path.join(process.cwd(), '../static/assets'), }; - config.watchOptions = { followSymlinks: true }; // make sure to use @emotion/* modules in the root directory fs.readdirSync(path.resolve(APP_DIR, './node_modules/@emotion'), pkg => {