Try this:
nuxt.config.js
build: {
transpile: [
"gsap"
],
}
In a page or elsewhere
<script>
import { gsap } from "gsap";
import { Draggable } from 'gsap/Draggable';
export default {
mounted() {
if (process.client) {
// Here you can use gsap now and draggable
}
}
}
</script>