Last active
May 17, 2020 06:32
-
-
Save zapad7715/9ff593d87f1a040f9129565d024f8a95 to your computer and use it in GitHub Desktop.
Fix [Vuetify] Multiple instances of Vue detected in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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