Skip to content

Commit 8be56df

Browse files
committed
update error message
A circular dependency means that we are applying in a circle, so while this changed it's just the _other_ side of the circle (are there even sides on a circle? Help?) In these cases, the errors are technically better, because this is the first node we see where the circle starts.
1 parent ed966b2 commit 8be56df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17375,7 +17375,7 @@ describe('custom utilities', () => {
1737517375
['foo', 'bar'],
1737617376
),
1737717377
).rejects.toThrowErrorMatchingInlineSnapshot(
17378-
`[Error: You cannot \`@apply\` the \`dark:foo\` utility here because it creates a circular dependency.]`,
17378+
`[Error: You cannot \`@apply\` the \`hover:bar\` utility here because it creates a circular dependency.]`,
1737917379
)
1738017380
})
1738117381

@@ -17406,7 +17406,7 @@ describe('custom utilities', () => {
1740617406
['foo', 'bar'],
1740717407
),
1740817408
).rejects.toThrowErrorMatchingInlineSnapshot(
17409-
`[Error: You cannot \`@apply\` the \`dark:foo\` utility here because it creates a circular dependency.]`,
17409+
`[Error: You cannot \`@apply\` the \`hover:bar\` utility here because it creates a circular dependency.]`,
1741017410
)
1741117411
})
1741217412
})

0 commit comments

Comments
 (0)