Skip to content

Instantly share code, notes, and snippets.

@zapad7715
Last active May 17, 2020 06:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zapad7715/9ff593d87f1a040f9129565d024f8a95 to your computer and use it in GitHub Desktop.
Save zapad7715/9ff593d87f1a040f9129565d024f8a95 to your computer and use it in GitHub Desktop.
Fix [Vuetify] Multiple instances of Vue detected in Rails
// config/webpack/environment.js
const { environment } = require('@rails/webpacker')
const vue = require('./loaders/vue')
environment.loaders.append('vue', vue)
const resolver = {
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
}
}
environment.config.merge(resolver)
module.exports = environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment