Repository navigation
Plotly.js 3.0.0 Webpack compatibility issue #7361
Copy link
Copy link
Closed
Labels
P1needed for current cycleneeded for current cyclebugsomething brokensomething brokeninfrastructurebuild process etc.build process etc.
Description
After upgrading Plotly.js from 2.34.2 to 3.0.0 in a Webpack project, when running npx webpack the build fails with:
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-array' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-collection' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-dispatch' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-geo' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-path' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-quadtree' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-shape' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-time' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'd3-timer' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
ERROR in ./node_modules/plotly.js-dist-min/plotly.min.js
Module not found: Error: Can't resolve 'elementary-circuits-directed-graph' in '/home/devrosch/VscodeProjects/plotly-webpack-issue-demo/node_modules/plotly.js-dist-min'
@ ./src/index.js 1:0-40 5:2-16
A minimal demo is available at: plotly-webpack-issue-demo.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1needed for current cycleneeded for current cyclebugsomething brokensomething brokeninfrastructurebuild process etc.build process etc.
Activity
marthacryan commentedon Feb 14, 2025
Looks like this is fixed by #7367! Just tested locally and it seems to fix the issue.