【问题标题】:Vue CLI 3 --modern mode build => error in browserVue CLI 3 --modern mode build => 浏览器中的错误
【发布时间】:2019-03-10 13:32:06
【问题描述】:
chunk-vendors.60d43f55.js:1 Uncaught TypeError: Cannot read property 'webpackJsonp' of undefined
at chunk-vendors.60d43f55.js:1

=> 块供应商.60d43f55.js:1

index.html =>

没有 --modern 模式一切正常

【问题讨论】:

    标签: vue.js webpack vue-cli-3


    【解决方案1】:

    啊,我在 vue.config.js 中发现了问题 => 多余的 globalObject: 'this'

    module.exports = {
      ...
      configureWebpack: {
        output: {
          globalObject: 'this'
        }
      }
      ...
    }
    

    【讨论】:

      猜你喜欢
      • 2019-02-07
      • 2019-03-31
      • 2019-05-04
      • 2022-12-15
      • 2019-05-23
      • 2021-10-19
      • 1970-01-01
      • 2021-03-23
      • 2020-02-24
      相关资源
      最近更新 更多