Jump to content
Search Community

frankmcpolin

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by frankmcpolin

  1. Thanks @GreenSock - yes it is a bummer, and yes I am quite certain it is a config/setup issue, not at all suggesting it is a problem with the gsap package itself, but was hoping someone else had experienced this and had suggestions re webpack/tsconfig/some other magic bullet that would resolve it. On the licence point, to clarify, I don't think I need one just yet, I am using the downloaded members package because I wanted to experiment with CustomEase. My project is still a long way from being releasable so is not commercialised yet (ie. end users aren't paying because there aren't any yet), and 'my developers' should probably read 'my future developers' - although I do have a freelancer help me from time to time so not sure if that counts, but I'm confused about this multi-developer point because I don't see reference to it on your licensing page. (Repo may have been private, should work now.)
  2. Hi, sorry for the delay, but maybe the following project will explain better: https://github.com/Endemol/typescript-pixi-boilerplate (node 11, run bash setup-project.sh or setup-project.bat) You will see that the alpha fade tween will generate an error at runtime, but there is no indication either in the class or during the compile that I am missing the gsap import. I can't believe this can be right as it will require all my developers to actively remember to manually add the import every time they want to use a gsap feature, which, as mentioned in the OP is an accident waiting to happen!
  3. OK, thanks for your input Zach - I mean it does seem a bit too much of a coincidence that 2 developers on different machines, with different editors are experiencing identical issues to be purely IDE related. I will prepare a sample repo, see if the problem persists and share it here if it does! Cheers!
  4. Haha, well unfortunately that person is having the exact same issue and already spent 4 hours trying to fix it today - and he's using VS Code. Just to be clear, the code hinting and autocompletion is fine for both, the issue is that I am getting gsap.whatever is not a function errors at runtime when the import is not there, yet surely I should be getting compile errors if the import is missing? The best way to describe it is that it's kinda like my dev environment thinks it's global, but the runtime doesn't! Does this make sense?
  5. Hi, thanks for replying Zach! I get the Uncaught TypeError: gsap.to is not a function error at runtime, which I guess is to be expected because the import is not included in the class attempting to run this tween. If I add the import it works just fine. new webpack.ProvidePlugin({ gsap: 'gsap' }), I tried the above in webpack plugins section, but no joy... to be honest I'm guessing at stuff here though! The compilation is just a gulp script I run, written by someone who understands that side of things a whole lot better than I do!
  6. Hi, so I have a typescript/pixi project that I just upgraded from gsap 2 to gsap 3. I am using the gsap-bonus.tgz and npm install. Everything is working ok if, as instructed I have the import in the classes I want to use it in: import gsap from 'gsap'; However, the problem I have is that this is not generating a compile time error if it has mistakenly not been imported. Even worse, Webstorm seems perfectly ok with me autocomnpleting a gsap. bit of code without doing the import. Even worse yet is that the runtime error only fires at the point in which my game attempts to use the gsap item in the class with the missing import! This is a QA disaster waiting to happen! Can anyone suggest a way to get this to generate a compile time error? Thanks.
×
×
  • Create New...