Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotly.js 3.0.0 Webpack compatibility issue #7361

Closed
devrosch opened this issue Feb 9, 2025 · 1 comment
Closed

Plotly.js 3.0.0 Webpack compatibility issue #7361

devrosch opened this issue Feb 9, 2025 · 1 comment
Assignees
Labels
bug something broken infrastructure build process etc. P1 needed for current cycle

Comments

@devrosch
Copy link

devrosch commented Feb 9, 2025

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.

@gvwilson gvwilson added bug something broken P1 needed for current cycle infrastructure build process etc. labels Feb 10, 2025
@marthacryan
Copy link
Collaborator

Looks like this is fixed by #7367! Just tested locally and it seems to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken infrastructure build process etc. P1 needed for current cycle
Projects
None yet
Development

No branches or pull requests

3 participants