41:8 warning Using exported name 'TweenMax'as identifier fordefaultexportimport/no-named-as-default42:8 warning Using exported name 'Draggable'as identifier fordefaultexportimport/no-named-as-default
And the browser error is:
Unexpected identifier
What is going on?
Try this:
nuxt.config.js
build:{
transpile:["gsap"],}
In a page or elsewhere
<script>import{ gsap }from"gsap";import{Draggable}from'gsap/Draggable';exportdefault{
mounted(){if(process.client){// Here you can use gsap now and draggable}}}</script>
Importing Plugins in Nuxt.js
in GSAP
Posted
Try this: