Skip to content

Plotly.js 3.0.0 Webpack compatibility issue #7361

Closed

Description

@devrosch

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.

Activity

  1. added
    bugsomething broken
    P1needed for current cycle
    on Feb 10, 2025
  2. marthacryan commented on Feb 14, 2025

    @marthacryan
    Contributor

    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

Metadata

Metadata

Assignees

Labels

P1needed for current cyclebugsomething brokeninfrastructurebuild process etc.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions