-
-
Notifications
You must be signed in to change notification settings - Fork 376
Open
Labels
❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perfPriority 4: bugs that violate documented behavior, or significantly impact perf
Description
Reporting a bug?
Attempting to do
<script setup vapor lang="ts">
import { useI18n } from "vue-i18n";
const { t } = useI18n();
</script>
Results in
Uncaught (in promise) SyntaxError: Must be called at the top of a `setup` function
createCompileError message-compiler.mjs:77
createI18nError vue-i18n.runtime.mjs:63
useI18n vue-i18n.runtime.mjs:2138
setup ThisFile.vue:3
Expected behavior
Works in Vue Vapor as it does with non-Vapor Vue
Reproduction
None
System Info
"@intlify/unplugin-vue-i18n": "^6.0.8",
"vue": "^3.6.0-alpha.1",
"vue-i18n": "^11.1.10",
"vite": "^7.0.5",
Screenshot
No response
Additional context
https://github.com/vuejs/core/releases/tag/v3.6.0-alpha.1#about-vapor-mode
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 Discussions
wsxiaolin and Jamesits
Metadata
Metadata
Assignees
Labels
❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perfPriority 4: bugs that violate documented behavior, or significantly impact perf