Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
[Vue warn]: (deprecation GLOBAL_PROTOTYPE) Vue.prototype is no longer available in Vue 3. Use app.config.globalProperties instead - showing again

I have tried to migrating my application vue 2 to vue 3 by using migrating build official documentation.

I am configuring the files as it is suggested. There is no error while compilation and build is successful as well. But, i get multiple warning related to this in my console as i am using (@vue/compat).

As per official documentation, i have replaced vue prototype properties with app.config.globalProperties in everywhere but still i am getting the warning in console.

Here is my code

    import urSnackbar from "./urSnackbar.vue";
import urGlobalSnackbar from "./urGlobalSnackbar";
import snacbkarEvent from "./snackbarEvents";
export default {
    install(app){
        app.component(urSnackbar.name, urSnackbar);

        if (this.installed) {
            return
        }

        this.installed = true;

        const showSnackbar = (params) => {
            if (typeof params === 'string') {
                params = { title: '', text: params }
            }

            if (typeof params === 'object') {
                snacbkarEvent.$emit('show-snackbar', params);
            }
        };
        const addSnackbar = (params) => {
            if (typeof params === 'string') {
                params = { title: '', text: params }
            }

            if (typeof params === 'object') {
                snacbkarEvent.$emit('add-snackbar', params);
            }
        };
        app.config.globalProperties.$showSnackbar = showSnackbar;
        app.config.globalProperties.$addSnackbar = addSnackbar;
    }
};

After updating as documented in official docs, i am getting those same warnings in console.

Warning

1. [Vue warn]: (deprecation GLOBAL_EXTEND) Vue.extend() has been removed in Vue 3. Use defineComponent() instead.

2.[Vue warn]: (deprecation GLOBAL_MOUNT) The global app bootstrapping API has changed: vm.$mount() and the "el" option have been removed. Use createApp(RootComponent).mount() instead.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!