Swup 4.5.1: type error in user hook #861
Replies: 5 comments 6 replies
-
this is now happening on both sites using the swup@4 cdn link. |
Beta Was this translation helpful? Give feedback.
-
@ShaneSheppard can you tell us when exactly this happens? On what page are you clicking which link? |
Beta Was this translation helpful? Give feedback.
-
Ah, found it. Well – it seems like
it's an array… |
Beta Was this translation helpful? Give feedback.
-
@ShaneSheppard going forward, should you encounter other bugs, you should always first ask yourself:
In the above scenario, the error message tells you exactly what is wrong with your implementation. The same applies to all other open source packages you are using… otherwise it's likely that you will burn out maintainers at some point. Thank you! 🙏 |
Beta Was this translation helpful? Give feedback.
-
Closing this as OP is not providing helpful information. |
Beta Was this translation helpful? Give feedback.
-
Describe your problem 🧐
Getting this error on page transitions.
swup.hooks.on("animation:in:end", Webflow);
Full Error in console -
Error in hook 'animation:in:end': TypeError: t is not a function
at swup@4:1:9934
at new Promise ()
at swup@4:1:9906
at swup@4:1:9966
at swup@4:1:10065
at t (swup@4:1:9082)
at swup@4:1:9215
at S.run (swup@4:1:9730)
at swup@4:1:8428
(anonymous) @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
(anonymous) @ swup@4:1
t @ swup@4:1
(anonymous) @ swup@4:1
run @ swup@4:1
(anonymous) @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
Promise.then (async)
call @ swup@4:1
(anonymous) @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
Promise.then (async)
V @ swup@4:1
e @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
Promise.then (async)
e @ swup@4:1
(anonymous) @ swup@4:1
(anonymous) @ swup@4:1
(anonymous) @ swup@4:1
(anonymous) @ swup@4:1
(anonymous) @ swup@4:1
t @ swup@4:1
(anonymous) @ swup@4:1
run @ swup@4:1
(anonymous) @ swup@4:1
Promise.then (async)
call @ swup@4:1
r @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
Promise.then (async)
(anonymous) @ swup@4:1
r @ swup@4:1
H @ swup@4:1
(anonymous) @ swup@4:1
runSync @ swup@4:1
callSync @ swup@4:1
handleLinkClick @ swup@4:1
h @ swup@4:1
What is your question? 🙋♀️
Can someone tell me how to fix this error?
It happens once transitioning after load i am using this line of code on another site no problem.
URL to minimal reproduction 🔗
https://prospectus-00f8af.webflow.io/junior
Checked all these? 📚
Beta Was this translation helpful? Give feedback.
All reactions