messageCompiler is not a function
See original GitHub issueHi team i’m getting this problem in production mode
import { enUS, viVN } from './locales'
intlify: {
localeDir: 'locales',
vueI18n: {
locale: 'en-US',
messages: {
'en-US': {
...enUS
},
},
},
},
locales/enUS.ts
'page.global.table.favorites': 'Favorites',
'page.global.table.status': 'Status',
'page.global.table.name': 'Name',
'page.global.table.date': 'Date',
'page.global.table.time': 'Time',
'page.global.table.pair': 'Pair',
'page.global.table.coin': 'Coin',
'page.global.table.currency': 'Currency',
'page.global.table.infomation': 'Infomation',
'page.global.table.last_price': 'Last Price',
'page.global.table.price': 'Price',
'page.global.table.market': 'Market',
'page.global.table.change': 'Change',
'page.global.table.volume': 'Volume',
'page.global.table.sum': 'Sum',
'page.global.table.amount': 'Amount',
Thanks for your help
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
"messageCompiler is not a function" after building files. #91
i want to use $t in template section and lifecycle hook functions. so in vite.config.js. vueI18n({ include: path.resolve(__dirname, ".src/ ...
Read more >Vue 3 i18n issue: The message format compilation is not ...
Because message compiler isn't included. You need to pre-compilation all message format. So translate function return 'hello'.
Read more >Optimization - Vue I18n - Intlify
... improves performance because vue-i18n just only execute Message functions, so no compilation. Also, the message compiler is not bundled, ...
Read more >@intlify/vite-plugin-vue-i18n - npm
However, with the message compiler, the javascript function conversion will not work in some environments (e.g. CSP). For this reason, vue-i18n@ ...
Read more >intlify/message-compiler - vue-i18n-next - Yarn
@intlify/message-compiler. owner intlify1.6mMIT9.2.2TS vulns ... vue-i18n-core. #1110 fix: conflict process global object in vDirective function (@kazupon) ...
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
I have fixed this issue on my end. I had to append this into Vista’s nuxt 3 plugin:
and not a single response for a month