Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: __INTLIFY_PROD_DEVTOOLS__ is not defined in production mode. #529

Closed
HamzaShafiq opened this issue Jun 11, 2021 · 2 comments · Fixed by #532
Closed
Labels
Status: Review Needed Request for review comments

Comments

@HamzaShafiq
Copy link

HamzaShafiq commented Jun 11, 2021

Description
I have installed vue-i18n@next for vue 3 app. Locally it works fine but while deploying to production. After it is deployed, we see the console error saying

Module versions (please complete the following information):

  • vue: "^3.0.0",
  • vue-i18n: "^9.1.6"

Expected behavior
The production build should be working correctly

Screenshots
console error

Kindly let me know what I am doing wrong.

@kazupon
Copy link
Member

kazupon commented Jun 12, 2021

Thank you for your reporting!
This is a bug

If you would like to avoid this issue, you need to specify __INTLIFY_PROD_DEVTOOLS__ flag on bundler configuration
About this flag, see the below URL:
https://vue-i18n.intlify.dev/guide/advanced/optimization.html#reduce-bundle-size-with-feature-build-flags

By the way, This fix will be officially released in v9.2.
Currently, the alpha version of v9.2 has been released.
This version is not yet stable, but it can be used in much the same way as v9.1, except for the support for TypeScript, which is unaffected by the disruptive changes.

Thanks!

@ghost
Copy link

ghost commented Jun 15, 2021

@kazupon So v9.2 does not work with TypeScript yet? I have TypeScript errors when I attempt to build for production with 9.2.0-alpha.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants