error: Not available in legacy mode
See original GitHub issueReporting 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
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Shinigami92 Yeah. Unfortunately 😞 ,
useI18n
on legacy mode is lazy because the legacy mode is implemented using ofbeforeCreate
mixin. vue core cannot allow tosetup
hook in mixin. If we want to uset
in thesetup
function directly not template, we need to wait onnextTick
etc. I’ll add it to the docs as a limitation.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 in9.2.0