Simply adding this keyframe as a rule:
sheet.addRule('foo', {
'@keyframes test': {
from: { opacity: 0 },
to: { opacity: 1 },
},
})
throws following error
TypeError container.addRule(...).addRule is not a function
See this CodeSandbox for repro and full error stack.
Oops, thanks.
So how did you fix it?
Most helpful comment
So how did you fix it?