question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to use the production build (*.prod.js)

See original GitHub issue

vue & vue-i18n version

  • vue: ^3.0.4
  • vue-i18n: ^9.0.0-beta.10

What is Expected?

Need manual/guide to make/configure the production build. Or disable that warning message in Console.

What is actually happening?

showing message in Console:

You are running a development build of vue-i18n.
Make sure to use the production build (*.prod.js) when deploying for production.

prod

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rafamanzocommented, Dec 20, 2020

Fixed it configuring webpack:

        resolve: {
          alias: {
            "vue-i18n": "vue-i18n/dist/vue-i18n.esm-browser.prod.js"
          }
        }

Notice the you may need to chenge the esm-browser part according to your application.

0reactions
kuanyuicommented, Mar 4, 2021

Can this warning message be hidden manually during development? It’s very confusing and easy to be mixed with the warning messages I really want to read.

Still reproduceable in vue: 3.0.7 vue-i18n: 9.0.0 Screenshot_20210304_173435

Read more comments on GitHub >

github_iconTop Results From Across the Web

Production | webpack
In this guide, we'll dive into some of the best practices and utilities for building a production site or application.
Read more >
Creating a Production Build - Create React App
npm run build creates a build directory with a production build of your app. Inside the build/static directory will be your JavaScript and ......
Read more >
Webpack how to build production code and how to use it
You can add the plugins as suggested by @Vikramaditya. Then to generate the production build. You have to run the the command. NODE_ENV=production...
Read more >
Reactjs Build Production: Optimize Performance - CopyCat Blog
In this article, we will be taking a deep dive into the Reactjs build production, deployment, and tips on optimising your app's performance....
Read more >
Express Tutorial Part 7: Deploying to production
Open ./app.js and require the compression library as shown. Add the compression library to the middleware chain with the use() method (this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found