Tuesday, 19 January 2021

Vue ES Module and Browser Conflcits

I have a Vue.js project that is running on a site where I don't have control of what else is loaded on the page.

Whenever there is something else on the page that is loading the browser Vue.js library, mine seems to throw errors in console that directly point at the browser version of Vue.js

My guess is this has something to do with the global window.Vue being set by that script, but my code is being generated using Webpack and even when i don't chunk out Vue into a separate file, I still have these issues.

Is there anything anybody can suggest to try and debug this? Or some way to force my application to ONLY use the bundled ES Module version of Vue.js?



from Vue ES Module and Browser Conflcits

No comments:

Post a Comment