Skip to content

[FIX] - Pre-bundle the chart library so usage pages open in dev - #115

Merged
Henrik-3 merged 1 commit into
masterfrom
fix/frontend-charts-dev-prebundle
Dec 5, 2026
Merged

Henrik-3 merged 1 commit into
masterfrom
fix/frontend-charts-dev-prebundle

Conversation

@Henrik-3

@Henrik-3 Henrik-3 commented Dec 5, 2026

Copy link
Copy Markdown
Member

What

The usage pages (Developer → Usage, Settings → Usage and Settings → Analytics) open again in nuxt dev. Clicking their sidebar entry did nothing.

Why

The advisory bump to @unovis 1.8 pulls in striptags, a CommonJS package. nuxt-charts marks vue-chrts as transpiled, which Nuxt 4.6 leaves out of Vite's dependency pre-bundling, so in dev the browser loaded striptags unbundled and failed on its default import ("does not provide an export named 'default'"). The page chunk never loaded and the router dropped the navigation without a visible error. Production builds bundle it and were not affected, so e2e did not catch it.

How

Pre-bundle @unovis/ts and @unovis/vue explicitly through vite.optimizeDeps.include, which takes striptags with them.

Breaking changes / migrations

None. Restart nuxt dev once (delete frontend/node_modules/.cache/vite if the old bundle sticks).

Testing

  • Loaded the dashboard modules in a fresh nuxt dev with this config: they load, while the same import fails without it.
  • Production build and e2e are unaffected by this change; not run separately for it.

@greptile-apps

greptile-apps Bot commented Dec 5, 2026

Copy link
Copy Markdown

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Henrik-3
Henrik-3 merged commit ebce177 into master Dec 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant