Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(self-hosting): the overview weekly trends chunk loads on the node dashboard (#553)

Carl-Gerhard Lindesvärde547471409dd
diff --git a/apps/start/vite.config.ts b/apps/start/vite.config.ts
index c875cdafd..8b55eb2b5 100644
--- a/apps/start/vite.config.ts
+++ b/apps/start/vite.config.ts
@@ -49,6 +49,10 @@ const config = defineConfig({
'@visx/responsive',
'lodash',
'react-svg-worldmap',
+ // react-svg-worldmap requires d3-geo v2 (CommonJS) while the choropleth
+ // uses v3 (ESM, no default export). Left external, both import the one
+ // d3-geo the server output ships, and v2's default import fails on v3.
+ 'd3-geo',
],
},
});