Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'totalTime')
at Timeline.restart (gsap.min.js:10:20564)
at tl.clear (confettiCuisine.js:118:10)
at Socket.<anonymous> (confettiCuisine.js:145:16)
at Emitter.emit (index.mjs:136:20)
at Socket.emitEvent (socket.js:498:20)
at Socket.onevent (socket.js:485:18)
at Socket.onpacket (socket.js:455:22)
at Emitter.emit (index.mjs:136:20)
at manager.js:204:18
I try to use clear function in timeline
in GSAP
Posted
I got an error here:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'totalTime')
at Timeline.restart (gsap.min.js:10:20564)
at tl.clear (confettiCuisine.js:118:10)
at Socket.<anonymous> (confettiCuisine.js:145:16)
at Emitter.emit (index.mjs:136:20)
at Socket.emitEvent (socket.js:498:20)
at Socket.onevent (socket.js:485:18)
at Socket.onpacket (socket.js:455:22)
at Emitter.emit (index.mjs:136:20)
at manager.js:204:18
and this is the code :::