We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d6e20 commit 0727e7bCopy full SHA for 0727e7b
src/lib/expandApplyAtRules.js
@@ -59,9 +59,10 @@ function expandApplyAtRules(context) {
59
let siblings = []
60
let applyCandidates = apply.params.split(/[\s\t\n]+/g)
61
for (let applyCandidate of applyCandidates) {
62
- // TODO: Check for user css rules?
63
if (!context.classCache.has(applyCandidate)) {
64
- throw new Error('Utility does not exist!')
+ throw new Error(
+ `The ${applyCandidate} class does not exist. If it's a custom class, make sure it is defined within a \`@layer\` directive.`
65
+ )
66
}
67
68
let rules = context.classCache.get(applyCandidate)
0 commit comments