Skip to content

Conversation

@IMB11
Copy link
Member

@IMB11 IMB11 commented Jan 14, 2026

The useI18n() composable fails intermittently on Cloudflare Workers during SSR with "Error 27: NOT_INSTALLED". This happens because Vue's internal currentInstance variable is module-level and shared across concurrent requests - when multiple SSR requests run simultaneously, getCurrentInstance() can return a component from a different request's Vue app, causing the i18n symbol check to fail.

Replaces direct useI18n() calls with a getSafeI18n() helper that uses Nuxt's useNuxtApp().$i18n when available (which bypasses the problematic getCurrentInstance() check), falling back to useI18n() for non-Nuxt environments like app-frontend


Also fixes env not being passed to sentry

@IMB11 IMB11 requested a review from a team January 14, 2026 19:40
@IMB11 IMB11 marked this pull request as ready for review January 14, 2026 22:48
@github-actions
Copy link
Contributor

🚀 Frontend Deploy

Commit URL
1ddacbf https://0d6f55fd-frontend-staging.modrinth.workers.dev

@IMB11 IMB11 requested a review from clrxbl January 14, 2026 22:57
@IMB11 IMB11 added website Relates to Modrinth.com web frontend frontend Involves work from the frontend team labels Jan 14, 2026
@clrxbl clrxbl merged commit 454c708 into main Jan 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Involves work from the frontend team website Relates to Modrinth.com web frontend

Development

Successfully merging this pull request may close these issues.

3 participants