Hi @m__shum and welcome to the GSAP Forums!
Sorry to hear about the issues. I created a new Nuxt3 app here in my local machine and this is working without any issues:
import gsap from "gsap";
import { CustomEase } from "gsap/CustomEase";
import { onMounted } from "vue";
if (typeof window !== "undefined") {
gsap.registerPlugin(CustomEase);
}
const myEase = CustomEase.create('myEase', 'M0,0 C0.29,0 0.311,0.268 0.35,0.502 0.423,0.951 0.756,0.979 1,1 ');
onMounted(() => {
gsap.to("h1", {
x:200,
y: 200,
ease: "myEase",
duration: 2,
});
});
I would recommend you to use the onMounted hook in your setup.
We have this starter template on stackblitz that you can use as a reference:
https://stackblitz.com/edit/nuxt-starter-aih1uf
Hopefully this helps.
Happy Tweening!