Dynamic import failure for analytics event charts
When opening the analytics page in the self-hosted Keygen Portal, the page fails with:
Something went wrong!
error loading dynamically imported module:
https://XXX.com/src/components/analytics/event-charts.tsx
The portal is running through Vite behind Nginx Proxy Manager.
Directly requesting the module returns transformed JavaScript successfully, but the browser still reports the dynamic import failure.
Environment
- Keygen Portal: latest
- Keygen API: latest CE
- Mode:
singleplayer
- Package manager: pnpm 11.13.0
- Node.js: 22
- Browser access through HTTPS reverse proxy
- Portal development server: Vite on port 5173
I have already tried:
- Clearing
node_modules/.vite
- Starting Vite with
--force
- Reinstalling dependencies
- Hard-refreshing and using an incognito window
- Enabling WebSocket support and disabling proxy caching
Is the portal expected to work behind a reverse proxy using the Vite development server, or should it only be deployed using the production build?
Dynamic import failure for analytics event charts
When opening the analytics page in the self-hosted Keygen Portal, the page fails with:
The portal is running through Vite behind Nginx Proxy Manager.
Directly requesting the module returns transformed JavaScript successfully, but the browser still reports the dynamic import failure.
Environment
singleplayerI have already tried:
node_modules/.vite--forceIs the portal expected to work behind a reverse proxy using the Vite development server, or should it only be deployed using the production build?