Editorial question43.2K views2,070 votes0 answers2,600 following
AI-generatedD3 v7 ES Module Transition: Why Local Scripts Fail in Production
Goal We want to load external JSON data with d3.json in a D3 v7 application that is bundled as ES modules and served from a subpath in production. The same code works fine on a local dev server. Constraints & Uncertainty D3 v7 ships only as named ES module exports; a global d3 object is no longer available unless a UMD build is explicitly loaded. Data re