Skip to content

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

@sniperadmin

Description

@sniperadmin

@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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions