Console warning by vue-i18n in Quasar v2.0.0-beta.3
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
Codepen/jsFiddle/Codesandbox (required)
(Seems sandbox is not available for this version yet.)
To Reproduce
Steps to reproduce the behavior:
Create an new project:
quasar create quasar.i18n-issue-n4 --branch next
? Project name (internal usage for dev) quasar.i18n-issue-n4
? Project product name (must start with letter if building mobile apps) Quasar App
? Project description A Quasar Framework app
? Author
? Pick your CSS preprocessor: SCSS
? Check the features needed for your project: Vue-i18n
? Continue to install project dependencies after the project has been created? (recommended) yarn
While installing, this warning shows up:
[4/5] Linking dependencies...
warning " > vue-i18n@9.0.0-rc.5" has unmet peer dependency "vue@^3.0.0".
Run quasar dev
and open the website in browser. Check dev console, where these 2 messages show:
You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
You are running a development build of vue-i18n.
Make sure to use the production build (*.prod.js) when deploying for production.
Expected behavior There should be no error/warning on the default build.
Screenshots
Platform (please complete the following information): Quasar Version: v2.0.0-beta.3 @quasar/app Version: v3.0.0-beta.3 Quasar mode: [ *] SPA [ ] SSR [ ] PWA [ ] Electron [ ] Cordova [ ] Capacitor [ ] BEX Tested on: [ *] SPA [ ] SSR [ ] PWA [ ] Electron [ ] Cordova [ ] Capacitor [ ] BEX OS: Debian GNU/Linux 9 (Docker) Node: v14.15.1 NPM: Yarn: 1.22.5 Browsers: Chrome Version 88.0.4324.146 (Official Build) (64-bit) iOS: Android: Electron:
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top GitHub Comments
Hi everyone!
I have found the solution for that warning: go to src\boot\i18n.js file from your project folder and change the
that should work!
You can follow the discussion here: https://github.com/intlify/vue-i18n-next/issues/461#issuecomment-847775822