question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: Not available in legacy mode

See original GitHub issue

Reporting a bug?

version:9.2.0-beta.31

example: const { t } = useI18n(); or const { t } = useI18n({ useScope: ‘global’})

error info: message-compiler.esm-bundler.js:54 Uncaught (in promise) SyntaxError: Not available in legacy mode at createCompileError (message-compiler.esm-bundler.js:54:1) at createI18nError (vue-i18n.esm-bundler.js💯30) at useI18n (vue-i18n.esm-bundler.js:2210:1)

Expected behavior

use example is normal

Reproduction

1

System Info

nothing

Screenshot

nothing

Additional context

nothing

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
kazuponcommented, Mar 14, 2022

@Shinigami92 Yeah. Unfortunately 😞 , useI18n on legacy mode is lazy because the legacy mode is implemented using of beforeCreate mixin. vue core cannot allow to setup hook in mixin. If we want to use t in the setup function directly not template, we need to wait on nextTick etc. I’ll add it to the docs as a limitation.

0reactions
Shinigami92commented, Mar 21, 2022

I would like to say that I will stay on 9.2.0-beta.30 for now due to the breaking behavior I will see how it will taken by the community and if they accept that breaking change when it arrives in 9.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Not available in legacy mode #1193 - GitHub
When I remove yarn.lock or increase/decrease vue-i18n version, I will get the error 'SyntaxError: Not available in legacy mode'.
Read more >
Vue.js 3 - Error while using Vue I18n plugin in vue - Cannot ...
I believe "vue-i18n": "^8.22.1" (git) you are using is not compatible with Vue 3 due to a major changes how Vue 3 works...
Read more >
LEGACY BOOT OF UEFI MEDIA How to Fix it 2019 Guide
If you got this kind of error watch the video to see how to fix it. ERROR : LEGACY BOOT OF UEFI MEDIA...
Read more >
No boot device found when you change the Boot sequence to ...
If the operating system is installed in Legacy mode, the error message appears when you reboot/restart the system. The failure cannot be ...
Read more >
Error when BIOS is in legacy mode with TPM 2.0
Describes an issue that triggers an error (TPM is ready for use, with reduced functionality) when the BIOS is in legacy mode with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found