Skip to content

Dynamic import failure for event-charts.tsx behind reverse proxy #301

Description

@tonideleo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions