[Vuejs]-TypeScript .entries() does not exist on type 'DOMTokenList'

1👍

Based on @jcalz comment, I added the "DOM.Iterable" lib. And problem solved. I was thinking that the "DOM" lib contains "Iterable". But it didn’t contain.

{
  "extends": "@vue/tsconfig/tsconfig.web.json",
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "main.d.ts"],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    },
    "typeRoots": ["./node_modules/@types", "src/core/types"],
    "ignoreDeprecations": "5.0",
    "lib":["DOM","DOM.Iterable","ESNext"]
  },
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

Leave a comment