How to make vue3 (with vite) and vuetify3 work with chrome 70+?

I’m running vue3 using vite. Everything works well on Chrome 90, but when I run the app on Chrome 70, I get the error “Cannot convert undefined or null to object”.

I managed to narrow the problem down, it comes from the function “genCssVariables”. In that function, it tries to execute for (const [key, value] of Object.entries(theme.colors)).

I tried to add to the vite.config.js legacy but it didn’t help.
This is the vite.config.js:

export default defineConfig({
    plugins: [
        vue(),
        vuetify(),
        legacy({
            targets: ["defaults", "not IE 11", "Chrome >= 70"]
            moderPolyfills: true,
            additionalLegacyPolyfills: ["regenerator-runtime/runtime"]
        }),
    ],
    build: {
        minify: false,
        target: ["es2015"],
    },
})