Home  >  Q&A  >  body text

javascript - When using mint-ui under Google Chrome, an error will be reported! Firefox and 360 Browser will not

Error code
Uncaught TypeError: Object.assign is not a function

The execution code is as follows:
npm install -g vue-cli
vue init webpack projectname
npm install --save mint-ui

main.js:
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

Vue.use(MintUI)

巴扎黑巴扎黑2731 days ago670

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-19 10:33:36

    What version of chrome? Try it on the consoleObject.assign函数存在不,不存在的话估计得用polyfill

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:33:36

    The Google version is too low and does not support Object.assign. Please update

    reply
    0
  • Cancelreply