[Vuejs]-Object.entries is not a function

1👍

It seems that the devices/browsers you mentioned don’t support Object.entries. To support environments that do not natively support Object.entires, make sure that in the polyfill section of your babel.config.js file, you add es7.object.entries. If you see es6.object in this section, remove it.

Example:

module.exports = {
  presets: [
    [
      "@vue/app",
      {
        polyfills: ["es7.object.entries"]
      }
    ]
  ]
};

Leave a comment