Repository navigation
fix(core): report Vue/Nuxt component errors + Nuxt 4 guide paths (#919, #922) - #926
Merged
Merged
Conversation
Collaborator
Author
|
QA (QA / Product Reliability): PASS for #919 / #922. CI green (build, CodeQL). Local: lint, all workspace tests, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base branch: develop
Summary
Closes #919
Closes #922
app.config.errorHandler, so in production builds they never reachedwindow.onerrorand were never reported.@telemetry-tracker/core1.6.0 addsinstallVueErrorHandler(app): reports withcontext.source = "vue", component name and Vueinfo; chains an existingerrorHandler(called after reporting); without one it stillconsole.errors like Vue's default; idempotent; returns an uninstall function. No Vue dependency (structural type, accepts Vue'sApp).app/plugins/andapp/middleware/for Nuxt 4, notes the root paths for Nuxt 3 /srcDir: ".", installs the Vue error handler vianuxtApp.vueApp, and usesimport.meta.devinstead of deprecatedprocess.dev.installVueErrorHandler. CHANGELOG under [Unreleased].How to test
packages/telemetry-core/src/vue.test.ts(real Vue 3.5 SSR app whose component throws → exactly one/ingest/errorwith component name; chaining; console fallback; idempotent/uninstall; no-op before init) andapps/dashboard/app/docs/nuxt/nuxt-guide-paths.test.ts(guide paths underapp/, Nuxt 3 paths labelled, handler installed).pnpm testnow runstsc -p tsconfig.test.jsonfirst (compile check that a real VueAppis accepted).pnpm lint,pnpm test(all workspaces),pnpm -r run build, committed dist matches build: pass.vite build,vue-tsc --buildOK): click / async click / render errors → 3/3/ingest/error204 each run (previously 0/3);setTimeoutuncaught still reported; console.error kept.nuxt build, files inapp/per new guide, vue-tsc on.nuxt/tsconfig.app.jsonOK): click / async / render → reported each run;$screenfromapp/middlewaresent; Nuxt's own error handler still runs (chained).Checklist
[Unreleased]Security / privacy
Errors go through the existing
trackErrorpath (client PII scrubbing applies). No server changes.