We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86a8b16 commit bbda33eCopy full SHA for bbda33e
1 file changed
web/webpack.shim.js
@@ -44,6 +44,11 @@ let webpackShimConfig = {
44
'graphlib': path.join(__dirname, 'node_modules/graphlib'),
45
'react': path.join(__dirname, 'node_modules/react'),
46
'react-dom': path.join(__dirname, 'node_modules/react-dom'),
47
+
48
+ // v2 added "type":"module" to package.json, causing webpack to treat lib/index.js
49
+ // as ESM (even though it's a UMD bundle) and ignore its module.exports assignment. Force the true
50
+ // ESM entry instead so webpack reads the proper export statements.
51
+ 'react-checkbox-tree': path.join(__dirname, 'node_modules/react-checkbox-tree/lib/index.esm.js'),
52
'stylis': path.join(__dirname, 'node_modules/stylis'),
53
'popper.js': path.join(__dirname, 'node_modules/popper.js'),
54
0 commit comments