SmelayaPanda
SmelayaPanda

Reputation: 159

Vue CLI 3 --modern mode build => error in browser

chunk-vendors.60d43f55.js:1 Uncaught TypeError: Cannot read property 'webpackJsonp' of undefined
at chunk-vendors.60d43f55.js:1

=> chunk-vendors.60d43f55.js:1 enter image description here

index.html => enter image description here

Without --modern mode all works correctly

Upvotes: 1

Views: 499

Answers (1)

SmelayaPanda
SmelayaPanda

Reputation: 159

Ah, I found issue in my vue.config.js => redundant globalObject: 'this'

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

Upvotes: 2

Related Questions