vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 122 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase') at devtools-overlay.mjs:8:183129 #516

Closed mosessmax closed 4 months ago

mosessmax commented 4 months ago

i get this error, as soon as i type into the input field, it goes away on refresh but shows up again as soon as i type in the input.

version: "vite-plugin-vue-devtools": "^7.3.1",

CleanShot 2024-07-10 at 14 51 33

webfansplz commented 4 months ago

Can you provide a mini repo? Thanks

r4g309 commented 4 months ago

I get the same error. I think it has to do with the autocomplete option. When I click and it fills out the form, that's when the error occurs.

<script setup lang="ts"></script>

<template>
  <input name="firstName" type="text" autocomplete="given-name" />
</template>

image image

phox081 commented 4 months ago

I get the same error by clicking anywhere on the interface, but only on the first click. This happens in a Vue.js project that was created before adding the plugin. In a clean Vue.js project, I don't encounter the error.

mosessmax commented 4 months ago

I get the same error by clicking anywhere on the interface, but only on the first click. This happens in a Vue.js project that was created before adding the plugin. In a clean Vue.js project, I don't encounter the error.

it was a clean vue.js project, i selected the devtool plugin while scaffolding the project.

webfansplz commented 4 months ago

I get the same error by clicking anywhere on the interface, but only on the first click. This happens in a Vue.js project that was created before adding the plugin. In a clean Vue.js project, I don't encounter the error.

it was a clean vue.js project, i selected the devtool plugin while scaffolding the project.

Can you share the repo to help us track it? Thanks.

webfansplz commented 4 months ago

I cannot reproduce it, so if someone can provide a mini repo, it would be helpful.

Deckluhm commented 4 months ago

I cannot reproduce it, so if someone can provide a mini repo, it would be helpful.

Here is a reproduction: https://github.com/Deckluhm/vue-devtools-next

⚠️ Important to note that it seems to only happen on Chromium-based browsers, not on Firefox.

Deckluhm commented 4 months ago

Also, I forgot to mention that, as @r4g309 said, it seems to only happen when using an autocomplete suggestion.

webfansplz commented 4 months ago

Fixed in v7.3.6