stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.22k stars 882 forks source link

Vue-i18n fails on Vue 3.0 projects #1375

Open josecarballosa opened 3 years ago

josecarballosa commented 3 years ago

Vue 3.0 project using vue-i18n@9.0.0-rc.4 fails with error:

Error in /turbo_modules/vue-i18n@9.0.0-rc.4/dist/vue-i18n.global.js (4807:7)
Vue is not defined

Stackblitz demo

For reference, here's a working Codesandbox demo and the package documentation.

thibaud-c commented 3 years ago

I have the same error. By any chance, is there any news on this issue?

Theiaz commented 2 years ago

Same for me, any updates?

HeyGarrison commented 7 months ago

@josecarballosa It looks like you're using EngineBlock. Check out environments here: https://developer.stackblitz.com/guides/user-guide/available-environments#frontmatter-title

I would recommend using WebContainer for this. Here is a link to the vite/vue starter https://vite.new/vue-ts for this!