Jump to content
Search Community

Nuxt Property '$gsap' does not exist on type

Oussamalkd test
Moderator Tag

Recommended Posts

I want to usenuxt-gsap-module on my nuxt app.

I follow the docs in github : https://github.com/ivodolenc/nuxt-gsap-module

but I can't acces to this.$gsap in may pages and components, it throws an error :  Property '$gsap' does not exist on type 'XXX'

my package.json file


"devDependancies" : {

"nuxt-gsap-module": "1.7.1"




boxRotation (): void {
    const gsap = this.$gsap
    gsap.to('.box', { rotation: 27, x: 100, duration: 1 })
  mounted () :void {





buildModules: [
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...