You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using HTML select element with the new appearance: base-select gives a Vite warning in the developer console if there is any other element in the select than option, which is allowed in this new appearance. Is there a way to disable this warning?
Repro: Create new Vite+Vue app with npm create vite@latest
Then a warning appears in the console: [vite] (client) warning: cannot be child of , according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.
Even though this is valid html in the new version of Chrome.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using HTML select element with the new appearance: base-select gives a Vite warning in the developer console if there is any other element in the select than option, which is allowed in this new appearance. Is there a way to disable this warning?
Repro: Create new Vite+Vue app with npm create vite@latest
Put this in App.vue html:
And this in the style block:
Then a warning appears in the console: [vite] (client) warning: cannot be child of , according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.
Even though this is valid html in the new version of Chrome.
Beta Was this translation helpful? Give feedback.
All reactions