[Vuejs]-Blank page after updating to vuejs 2.0

4👍

Thank’s guys for you help.

At the the end, the issue was because I use Webpack and the I need to add to the webpack configuration file.

//webpack.config.js

module.exports = {
  entry: {...},
  output: {...},
  resolve: {
    alias: {
      vue: 'vue/dist/vue.js'
    },
  },
  ...
};

Updated 02/06/2020

From dist/README.md VueJS

module.exports = {
  // ...
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.esm.js' // 'vue/dist/vue.common.js' for webpack 1
    }
  }
}

Leave a comment