A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue-cli/issues/6149 below:

not able to use external "vue" script · Issue #6149 · vuejs/vue-cli · GitHub

Version

5.0.0-alpha.0

Reproduction link

https://github.com/Urie96/vue-cli-issue

Environment info

webpack5 has new feature externalsType, I try to extern vue by script, but i received a error in browser console when import *.vue, it occur at last line

exports.install = function (vue, browserify) {
  if (installed) { return }
  installed = true

  Vue = vue.__esModule ? vue.default : vue
  version = Vue.version.split('.').map(Number)

Vue is pending Promise, so version is undefined

Steps to reproduce
module.exports = {
  configureWebpack: (config) => ({
    externalsType: 'script',
    externals: {
        vue: ['https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.min.js', 'Vue'],
    }})
}
What is expected?

Be able to see vue.js page

What is actually happening?

white page and chrome console throw error


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4