Jump to content
Search Community

Prasanna

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Prasanna

  1. @gaggo I believe this problem is caused by the pnpm not handling package name aliases properly. Unfortunately this problem is a bug in pnpm at the moment. I'll try to find a workaround, will comment here if successful.
  2. @dagda1 it appears that in your installation is creating a `@gsap/shockingly` folder instead of `gsap`. This might be due to the pnpm version that you're using. The easiest solution for you would be to run `pnpm add @gsap/shockingly` and import the packages using `import GSAP from '@gsap/shockingly'` Otherwise, try updating the pnpm version and you should be good too
  3. I just checked the server logs and it seems like there were a few D-DOS attempts on the server and it is quite possible that @Supachaiwas trying to install during the same time. The D-DOS attack could have affected the response speeds. We gracefully handle DDOS attacks, but unfortunately due to the intensity of such attacks some responses could be delayed. @Supachai we hope you don't experience such issues again, but let us know if it does. We will consider some improvements on the infra.
  4. @TimTh Sure, sent you my email address via DM 👍
  5. Hello @TimTh The error that you're getting is strange - reminds me of an error from NodeJs version 8. Can you check which version of nodejs you are using (node -v)? Alternatively, you could also run this command to configure the token: ``` npm config set @gsap:registry https://npm.greensock.com npm config set //npm.greensock.com/:_authToken xxxxx-xxxx-xxxx ``` Make sure to replace `xxxxx-xxxx-xxxx` with your token. Then running $npm i @gsap/shockingly should work 👍
  6. Hello @Basebuilder, it appears that the version of yarn cli that you are using in bitbucket pipelines could be the issue. Can you try doing this instead: Run this command once in the repo $ yarn add @gsap/business gsap@npm:@gsap/business This should fix the pipelines.
  7. Hello @Cassie, `always-auth=true` forces npm to always require authentication when accessing the registry. However, this is an optional command and is only required in some scenarios, but feel free to add it You cal also link it to a tutorial on PrivJs Blog if that's helpful to the users: https://www.privjs.com/blog/how-to-install-club-greensock-packages-on-vps
  8. Hello @4eck-media, could you check if your live servers have any domain whitelist? In some servers devops engineers enforce domain name whitelisting in order to prevent unintended requests. If your servers have the same, kindly add `https://npm.greensock.com` to the whitelist and everything should work fine ?
  9. Hello @thefa, Adding a .npmrc file to your project should solve the problem. Steps: 1. Add a new file `.npmrc` in your project root 2. Add the following content in the `.npmrc` file: ``` @gsap:registry=https://npm.greensock.com //npm.greensock.com/:_authToken=xxxx-yyyy-zzzz ``` 3. Replace `xxxx-yyyy-zzzz` with your access token Pro tip: You can also store the token as env variables
  10. Hello @derekobrien, I don't have an auth.json file with me, but I believe now you can use environment variables instead as well. (https://www.deployhq.com/support/config-files#environment-variables). You only need to add a .npmrc file to your project: @gsap:registry=https://npm.greensock.com //npm.greensock.com/:_authToken=${PRIVJS_TOKEN} Then add an environment variabled named `PRIVJS_TOKEN` in your deployHQ server. This should install the packages from greensock registry.
  11. Hello everybody, I am sorry that you faced an issue. Our services went offline intermittently today as we experienced a DDOS attack on our systems. There's nothing to worry as our service actively fended off the attacks, but couldn't serve few users for a short while. We have increased our server capacity in order to prevent such scenarios in the future. My apologies for the inconvenience
  12. Hello @Meet Bhatt, yarn tries to install all packages when you run the install command. That's likely the reason why .tgz install failed. Regarding the vercel issue, can you try to follow the steps mentioned in this article and see if that helps? https://blog.privjs.com/article/how-to-install-club-greensock-packages-on-vercel
  13. Hello everybody, my sincere apologies for all these issues. In the last 24 hours we recieved a massive number of requests which our cloud service failed to handle. The services are back online now. Our team has also put measures to prevent this from happening again. Going forward, we will be migrating our services to multiple cloud services in order to prevent any downtime. I am very sorry for the troubles you faced in the past 24 hours. Prasanna
  14. Hello everybody, my sincere apologies for all these issues. In the last 24 hours we recieved a massive number of requests which our cloud service failed to handle. The services are back online now. Our team has also put measures to prevent this from happening again. Going forward, we will be migrating our services to multiple cloud services in order to prevent any downtime. I am very sorry for the troubles you faced in the past 24 hours. Prasanna
  15. I tried replicating it with yarn version 1.0. It is strange that yarn is not reading the env variables. Since you are using yarn, it could help if you rename `.npmrc` to `.yarnrc`. If this still doesn't help, then running the commands on the machine should configure the values: ``` $ yarn config set @gsap:registry https://npm.greensock.com $ yarn config set //npm.greensock.com/:_authToken <token here> ```
  16. Hello @Sgt. Red Pepper, 403 error is returned when the yarn or npm cli doesn't get the GSAP token value. Usually yarn cli reads the .npmrc file in the project, but some versions require a .yarnrc file. It would be helpful to know which version of yarn you are using. Also, can you make sure whether the env variable is added to the container/vpc? Please note that the variable needs to be exposed to the machine where the `yarn install` command is run. (Many projects don't expose env variables to docker instances hence 403 errors) Let me know if this helps
  17. @stectix - I was able to get the typescript app running without issues. Maybe this line is not needed in your typescript config? "files": ["./node_modules/@gsap/business/types/index.d.ts"], I created a github repo for reference: https://github.com/privjs/gsap-typescript-example
  18. @stectix It seems like gsap package has been installed. Now, the typescript issue here is project-specific as there are various configurations involved. I'd recommend setting esModuleInterop as true, and maybe check the `node_modules` directory and test whether the type file exists?
  19. @stectixsorry about the late response, just saw the message. The error is weird - could be due to older version of yarn. If possible, please update the yarn version or use npm to install the package - it should fix it. If the above suggestion is not an option, I'd recommend doing this: 1. Run: `$yarn add @gsap/business` 2. import like this: `import gsap from '@gsap/business'` 3. import types like this: ``` "files": [ "node_modules/@gsap/business/types/index.d.ts" ] ``` Let me know if this helps. Otherwise I'd be happy to hop on a google meet call as well.
  20. Hi @stectix, @Rodrigo This seems to be a confusion caused by npm package aliasing. If you install the package using this command: `yarn add gsap@npm:@gsap/business` then the import should be `import gsap from 'gsap'`. This should work as the package manager creates a folder named `gsap` in the `node_modules` directory. If you did this, then add the following to compiler options: ``` "files": [ "node_modules/gsap/types/index.d.ts" ] ``` Let me know if this works
  21. Hello @intothebreach, If the .npmrc file contains the access token the installation should proceed without any problems. Some versions of yarn doesn't read local .npmrc file so, it would be good to run this command once: npm config set @gsap:registry https://npm.greensock.com npm config set //npm.greensock.com/:_authToken xxxx-yyyy-zzzz Replace xxxx-yyyy-zzzz with your token. Once you run the above two commands, installation should proceed just fine
  22. @Karsh HaganI think I found out the problem. The package name mismatch error with pnpm is caused because our registry automatically returns the relevant club greensock package according to your membership. Did you try running `$ pnpm add gsap@npm:@gsap/business` ?
  23. @Karsh HaganI'm gonna try and reproduce this now. Will keep you posted..
  24. Hi @Karsh Hagan, it seems like checksum failed - sometimes it is caused due to npm cache. Could you run `$ npm install` in your project again and push the code? That should update the checksum in your project
  25. Hi @Guillaume P., It seems like the installation is successful but the import is not. Could you share with us the `package.json` file contents? (just the line containing the gsap dependency is sufficient) to help us narrow down the problem. Also, try running this command: `$ npm install gsap@npm:@gsap/member` - and the imports should work. Prasanna
×
×
  • Create New...