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 attributify mode, certain (very specific) attribute name and value combinations crash the VS Code extension with the following message:
⚠️ Error on annotation
TypeError: Cannot read properties of undefined (reading 'match')
Based on the change-log and the error message, my best guess is that the issue is caused somewhere in #2186.
Generated CSS seems to be correct.
Reproduction
The minimal reproduction I was able to find is the following: <div p="1" gap="md:1" />.
See playground reproduction, where the problem is observable by the missing underline. Minimal changes, e.g. removing either attribute, or removing the md variant, or changing p="1" to p="2", or gap="md:1" to gap="md:2" wierdly resolve the issue.
I'm not so sure the rule is wrong. It is actually just gap="1" with the md variant. Also, notice that if you change gap="md:1" to gap="md:2" everything works. Furthermore, the generated CSS is correct in both cases, and it works with version 0.49.4.
UnoCSS version
Started in
v0.49.5
, present also inv0.49.6
.Describe the bug
Using attributify mode, certain (very specific) attribute name and value combinations crash the VS Code extension with the following message:
Based on the change-log and the error message, my best guess is that the issue is caused somewhere in #2186.
Generated CSS seems to be correct.
Reproduction
The minimal reproduction I was able to find is the following:
<div p="1" gap="md:1" />
.See playground reproduction, where the problem is observable by the missing underline. Minimal changes, e.g. removing either attribute, or removing the
md
variant, or changingp="1"
top="2"
, orgap="md:1"
togap="md:2"
wierdly resolve the issue.System Info
No response
Validations
The text was updated successfully, but these errors were encountered: