Skip to main content
4RAUM
Participant
Aug 23, 2020 7:49 AM UTC
Question

ERROR:'gsap' is not defined. [no-undef]

Hello,

i'am getting this error:

ERROR:'gsap' is not defined. [no-undef]

in my main.js file.

 

How can I solve this?

Thank you for your help!

Kind Regards

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    BenPleysier
    Community Expert
    Community Expert
    Aug 23, 2020 10:57 AM UTC

    You should go to the GreenSock site to get help.

     

    But if it is of any help, the error message says it all - you need to define 'gsap'.

    Translate
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    4RAUM
    4RAUMAuthor
    Participant
    Aug 23, 2020 11:56 AM UTC

    Hello Ben,

    thank you for your answer.

    I'am sure, it is not a GreenSock Problem. When I open the same project in VisualStudioCode Editor there is no error and everything works perfect.

    But Dreamweaver is still my favorite Editor. I don't want to switch.

    Kind Regards

    Translate
    BenPleysier
    Community Expert
    Community Expert
    Aug 23, 2020 12:58 PM UTC

    Sorry, I had the impression that the error stopped the code from working. If it is only a linting error in Dreamweaver, there are a couple of things that you can do:

    1. Ignore the error message

    2. Turn Linting off

    3. Modify the Linting settings as in https://helpx.adobe.com/au/dreamweaver/using/linting-code.html

    Translate
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!