[Vuejs]-How to fix "vue.min.js:6 TypeError: keyframes.insertRule is not a function"?

0๐Ÿ‘

โœ…

I believe the method you are looking for is called appendRule, not insertRule.

https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule

insertRule is a method of CSSStyleSheet, not CSSKeyframesRule:

https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule

It would appear that CSSKeyframesRule did have an insertRule method historically:

https://www.fxsitecompat.dev/en-CA/docs/2013/csskeyframesrule-insertrule-has-been-renamed-to-appendrule/

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/wW7w8Hro78s

Leave a comment