Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Enabling timeline shows error: useAuth is not a function #662

Open
martinszeltins opened this issue May 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@martinszeltins
Copy link

🐛 The bug

If I enable the timeline then I get this error:

500 useAuth is not a function

at useAppInit (./composables/useAppInit.ts:8:3)
at setup (./app.js:31:5)
at _sfc_main.setup (./app.js:63:23)
at callWithErrorHandling (./node_modules/.pnpm/@vueruntime-core@3.4.21/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:195:19)
at setupStatefulComponent (./node_modules/.pnpm/@vue+runtime-core@3.4.21/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7554:25)
at setupComponent (./node_modules/.pnpm/@vue+runtime-core@3.4.21/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7515:36)
at renderComponentVNode (./node_modules/.pnpm/@vue+server-renderer@3.4.21_vue@3.4.21/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:623:15)
at Module.ssrRenderComponent (./node_modules/.pnpm/@vue+server-renderer@3.4.21_vue@3.4.21/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:84:10)
at default (./node_modules/.pnpm/nuxt@3.11.2_@opentelemetry+api@1.8.0_@unocss+reset@0.59.4_floating-vue@5.2.2_unocss@0.59.4_vite@5.2.11/node_modules/nuxt/dist/app/components/nuxt-root.js:86:37)

If I disable the timeline then everything works.

🛠️ To reproduce

https://stackblitz.com/github/martinszeltins/nuxt-error-repro?file=app.vue

🌈 Expected behavior

Either it should always show the error or never show the error. And it is not clear what the error is about or what is the cause.

ℹ️ Additional context

No response

@martinszeltins martinszeltins added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant