Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New GSAP 3x]: Could not load a plugin in Nuxt #5

Open
sniperadmin opened this issue Aug 18, 2020 · 0 comments · May be fixed by #11
Open

[New GSAP 3x]: Could not load a plugin in Nuxt #5

sniperadmin opened this issue Aug 18, 2020 · 0 comments · May be fixed by #11

Comments

@sniperadmin
Copy link

sniperadmin commented Aug 18, 2020

@pirony Thanks so much for releasing this helpful tool!
Here is the current challenge:

Issue details

If I would import a specific gsap plugin, it will not work either by direct importing or by using nuxtGsap,imports option in the nuxt config... Here is the warning in the console

Invalid property scrumbleText set to 
Object { text: "new text", chars: "XO" }
 Missing plugin? gsap.registerPlugin()

Possible strategy

  • I think we should use the gsap beta version + gsap.registerPlugin() method
  • Normally, here is how I install the release for beta version: npm install https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/gsap-beta.tgz
  • This will let me import other plugins really easily import PluginName from 'gsap'
@drc0 drc0 linked a pull request Feb 18, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant