You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/motion.js?v=9f812faf' does not provide an export named 'hover' (at sloganStarClickAndHover.ts:3:18)
This is my code and in the editor I don't get any errors or warnings:
import {hover} from “motion”
export function sloganStarClickAndHover(sloganStar: HTMLElement) {
hover(sloganStar, () => {
console.log(“hover started on”, sloganStar)
return () => console.log(“hover end”)
});
...
I tried updating Motion, but apparently I already have the latest version.
What could be the error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to use the hover gesture, but I get:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/motion.js?v=9f812faf' does not provide an export named 'hover' (at sloganStarClickAndHover.ts:3:18)
This is my code and in the editor I don't get any errors or warnings:
I tried updating Motion, but apparently I already have the latest version.
What could be the error?
Beta Was this translation helpful? Give feedback.
All reactions