Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Podgy's avatar
Level 1

Laravel Mix 6 - Alias For Vue Doesn't Seem To Change

Hi all,

I'm getting a duplicate 'You are running Vue in development mode.' issue from a few different third party packages so I've attempted to alias Vue in Mix like:

'vue$': 'vue/dist/vue.runtime.esm.js'

or

'vue$': './node_modules/vue/dist/vue.runtime.esm.js'

Etc. Changing from vue.runtime.esm.js or vue.esm.js or vue.common.js.

But each time I re-compile the messages still appear pointing to:

vue.esm.js

So it appears that it's completely ignoring this change. Is there a better approach to ensuring only one version/instance of Vue is bundled?

In my bootstrap.js file I have:

window.Vue = require('vue').default;

With each subsequent Vue app registered like:

new Vue({ ...code here })

I'm not using import Vue from 'vue' anywhere in the project, nor am I using any external CDN.

Any pointers appreciated.

0 likes
0 replies

Please or to participate in this conversation.