Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
thefalconlab

Bonus Plugins problem on netlify

Recommended Posts

Hello,

I just bought simply green to use the drawSvg plugin in a gatsbyjs project, everything works fine in local, I had the gsap-bonus.tz in my project and install it with yarn, but then on deploy on netlify, it fails when installing the packages 

 error "./gsap-bonus.tgz": Tarball is not in network and can not be located in cache (["/opt/build/repo/gsap-bonus.tgz","/opt/build/.yarn_cache/v4/npm-gsap-3.3.1-38dd657cb489402de56aad2275178632de412527/node_modules/gsap/.yarn-tarball.tgz"])

I've tried to have the tgz file in git (btw, how to had it to git if I don't want people to see it, here my repo is private, but it's not always the case), and it fails the same way...

Link to post
Share on other sites

Finally I've managed to make it work hading in package.json

  "gsap": "file:gsap-bonus.tgz",

instead of 

    "gsap": "./gsap-bonus.tgz",

But I still need to have the tgz file on git, so what can I do for public repos ?

Link to post
Share on other sites

Hey thefalconlab and welcome to the GreenSock forums. I'm glad you got it figured out. 

 

5 hours ago, thefalconlab said:

I still need to have the tgz file on git, so what can I do for public repos ?

You should not put the .tgz including DrawSVG in a public repo. We ask that you only include the free files. Or just let people load GSAP themselves. For people to use the Club aspects, they need to have access to Club GreenSock.

 

If your repo is private then including the .tgz is fine - just don't make it public ;) 

Link to post
Share on other sites

Thanks, I'm the dev on this one, I will buy my licence for my themes, but if how to use a club plugin for a public repo then ? it's not possible

as if the file is not on github, it cannot be deployed...

is there a solution for that?

Link to post
Share on other sites
7 hours ago, Alexandra Spalato said:

as if the file is not on github, it cannot be deployed...

 

The gsap-bonus.tgz file/package can be hosted anywhere, like a private repo or url, so it can be password protected. See the npm install docs.

https://docs.npmjs.com/cli/install

 

 

  • Like 2
Link to post
Share on other sites
36 minutes ago, Alexandra Spalato said:

Thanks, I'm the dev on this one, I will buy my licence for my themes, but if how to use a club plugin for a public repo then ? it's not possible

as if the file is not on github, it cannot be deployed...

is there a solution for that?

If you put the bonus plugins in a public repo, it makes it far too easy for people to accidentally (or intentionally) avoid getting their own Club GreenSock membership for access to those plugins. Plus most repos claim (or are assumed) to be "open source", adding to the confusion. Most people won't even realize that they aren't supposed to just pull those bonus files out of your repo and use them in their own projects apart from yours. See what I mean? 

 

When you sign up and get the proper commercial license, it'll cover all of your Work Products and it's totally fine for your customers to use the bonus files INSIDE your Work Product. They'd only need to get their own license if they want to use the bonus files apart from your Work Product. 

 

And like Blake said, you could host that in a password-protected area elsewhere so there isn't confusion about it being inside your repo. 

 

Does that clear things up? 

  • Like 2
Link to post
Share on other sites

I have same problem. I can't use premium plugins because it's failing on Netlify build!!!

 

Changing to 

"gsap": "file:assets/js/gsap-bonus.tgz",

didn't solve anything

Link to post
Share on other sites

Hey @bdrtsky. Make sure that gsap-bonus.tgz exists on your server and that the path to it is correct. Besides that, please provide additional details because it's impossible for us to help you out as is.

Link to post
Share on other sites

Totally my bad. I had 

*.tgz
 
in .gitignore
 
(again forum editor is broken on paste. how to fix it?)
  • Thanks 1
Link to post
Share on other sites
1 minute ago, bdrtsky said:

(again forum editor is broken on paste. how to fix it?)

I recommend pasting in plain text (CMD/CTRL + Shift + p) most of the time because the editor tries to retain existing styles. To fix your previous post I went into the HTML source and manually edited it.

Link to post
Share on other sites

Hi everyone,

I've tried using "gsap": "file:gsap-bonus.tgz" in my package.json  but when I push on Github and Netlify starts the deploy, it provides me this message:

2:37:16 PM: npm ERR! code ENOENT
2:37:16 PM: npm ERR! syscall stat
2:37:16 PM: npm ERR! path /opt/build/repo/gsap-bonus.tgz
2:37:16 PM: npm ERR! errno -2
2:37:16 PM: npm ERR! enoent ENOENT: no such file or directory, stat '/opt/build/repo/gsap-bonus.tgz'
2:37:16 PM: npm ERR! enoent This is related to npm not being able to find a file.
2:37:16 PM: npm ERR! enoent

 

Does anyone have the same problem?

Thanks

Andrea

package.json

Link to post
Share on other sites

Are you sure the file is being committed to your repo? A lot of .gitignore files block .tgz files.

# Output of 'npm pack'
*.tgz

 

If you have that rule, you need to make sure to allow the file.

!gsap-bonus.tgz

 

  • Like 3
Link to post
Share on other sites

Hi everyone, i have the same problem like TeamBeconcept and my .gitignore is without  .tgz and i still get same error.

 

 

1254090031_Screenshotfrom2020-08-2613-41-09.png.68ae806abe79b860c1e9a1d2636c6530.png

 

Thanks!

Link to post
Share on other sites

Hey @FactoryWW. That error means it's not finding the file. Make sure that the gsap-bonus.tgz file is on your server and that the file path it's attempting to be found at is correct.

Link to post
Share on other sites

Would the GSAP Team be willing to consider hosting private npm packages for the bonus plugins? Similar to how Font Awesome handles their pro membership packages?

Link to post
Share on other sites
12 hours ago, timthewebguy said:

Would the GSAP Team be willing to consider hosting private npm packages for the bonus plugins? Similar to how Font Awesome handles their pro membership packages?

@timthewebguy We have been working on doing something like that, yes. Not quite ready for prime-time, but we're getting close. If you'd like to be a beta tester, let us know. And thanks for being "Shockingly Green"! 

Link to post
Share on other sites

I would love to help beta test this when it’s ready! Whatever I can do to help 😄

 

Thanks for maintaining such an amazing library (and forum)!

  • Thanks 1
Link to post
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.

×