<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: REACT modules, nx deploy app in combination with GSAP Business failure in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1057823#M41027</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/116484"&gt;@brtdwchtr&lt;/a&gt; I uploaded the .tgz file to my own server and changed the package.json to this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dependencies": {
    "@gsap/react": "^2.1.1",
    "@hubspot/cms-components": "latest",
    "autoprefixer": "^10.4.19",
    "gsap": "http://myserver.com/gsap-bonus.tgz"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;When deploying the app it pulles it directly from my server without problems. It's a way around but not ideal. I hope Hubspot will fix this problem!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 11:26:05 GMT</pubDate>
    <dc:creator>BelBarakat</dc:creator>
    <dc:date>2024-10-21T11:26:05Z</dc:date>
    <item>
      <title>REACT modules, nx deploy app in combination with GSAP Business failure</title>
      <link>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1028462#M40319</link>
      <description>&lt;P&gt;Hey there,&lt;BR /&gt;&lt;BR /&gt;I'm trying to deploy my REACT APP to Hubspot (&lt;A href="https://github.hubspot.com/cms-react/" target="_blank"&gt;https://github.hubspot.com/cms-react/&lt;/A&gt;) with GSAP Business library (&lt;A href="https://gsap.com/docs/v3/Installation" target="_blank"&gt;https://gsap.com/docs/v3/Installation&lt;/A&gt;) I used the private registry NPM method, where I install "npm install &lt;A href="mailto:gsap@npm:@gsap/business&amp;quot;" target="_blank"&gt;gsap@npm:@gsap/business"&lt;/A&gt; and create a .npmrc file in my root with my registry url and token.&lt;BR /&gt;&lt;BR /&gt;This should be enough for GSAP to be used. Locally everything works and I can use the business plugins from GSAP. But when I try to deploy my modules with "nx deploy app" I get the following error log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[INFO]   aug. 15 9:30:19AM EDT  Archiving and Zipping Project Source 
[INFO]   aug. 15 9:30:26AM EDT  Uploading Project Source Archive 
[ERROR]   aug. 15 9:30:31AM EDT  npm notice  
[ERROR]   aug. 15 9:30:31AM EDT  npm notice New major version of npm available! 8.19.4 -&amp;gt; 10.8.2 
[ERROR]   aug. 15 9:30:31AM EDT  npm notice Changelog: &amp;lt;https://github.com/npm/cli/releases/tag/v10.8.2&amp;gt; 
[ERROR]   aug. 15 9:30:31AM EDT  npm notice Run `npm install -g npm@10.8.2` to update! 
[ERROR]   aug. 15 9:30:31AM EDT  npm notice  
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! code E404 
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404 Not Found - GET https://registry.npmjs.org/@gsap%2fbusiness - Not found 
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404  
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404  '@gsap/business@^3.12.5' is not in this registry. 
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404  
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404 Note that you can also install from a 
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! 404 tarball, folder, http url, or git url. 
[ERROR]   aug. 15 9:30:31AM EDT   
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR! A complete log of this run can be found in: 
[ERROR]   aug. 15 9:30:31AM EDT  npm ERR!     /tmp/cms_BlA6QH/npmLogs/2024-08-15T13_30_29_113Z-debug-0.log 
[ERROR]   aug. 15 9:30:31AM EDT  npm install error for server dependencies &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The registry isn't correct and it should take the right one from the .npmrc file but it seems this file can't be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a thread with GSAP to see what the problem migth be but we keep hitting road blocks (&lt;A href="https://gsap.com/community/forums/topic/41719-installing-gsap-business-to-vite-project-registry-error/" target="_blank"&gt;https://gsap.com/community/forums/topic/41719-installing-gsap-business-to-vite-project-registry-error/&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;I also tried a different methods to install GSAP with "npm install ./gsap-bonus.tgz" This way on deployment it should unzip this file in Hubspot but also here we get an error log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[INFO]   aug. 15 3:30:07AM EDT  Archiving and Zipping Project Source 
[INFO]   aug. 15 3:30:14AM EDT  Uploading Project Source Archive 
[ERROR]   aug. 15 3:30:18AM EDT  npm WARN tarball tarball data for gsap@file:gsap-bonus.tgz (null) seems to be corrupted. Trying again. 
[ERROR]   aug. 15 3:30:18AM EDT  npm WARN tarball tarball data for gsap@file:gsap-bonus.tgz (null) seems to be corrupted. Trying again. 
[ERROR]   aug. 15 3:30:18AM EDT  npm notice  
[ERROR]   aug. 15 3:30:18AM EDT  npm notice New major version of npm available! 8.19.4 -&amp;gt; 10.8.2 
[ERROR]   aug. 15 3:30:18AM EDT  npm notice Changelog: &amp;lt;https://github.com/npm/cli/releases/tag/v10.8.2&amp;gt; 
[ERROR]   aug. 15 3:30:18AM EDT  npm notice Run `npm install -g npm@10.8.2` to update! 
[ERROR]   aug. 15 3:30:18AM EDT  npm notice  
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! code ENOENT 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! syscall open 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! path /tmp/cms_kvwZaH/cms-js-renderer/gsap-bonus.tgz 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! errno -2 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! enoent ENOENT: no such file or directory, open '/tmp/cms_kvwZaH/cms-js-renderer/gsap-bonus.tgz' 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! enoent This is related to npm not being able to find a file. 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! enoent  
[ERROR]   aug. 15 3:30:18AM EDT   
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR! A complete log of this run can be found in: 
[ERROR]   aug. 15 3:30:18AM EDT  npm ERR!     /tmp/cms_kvwZaH/npmLogs/2024-08-15T07_30_16_478Z-debug-0.log 
[ERROR]   aug. 15 3:30:18AM EDT  npm install error for server dependencies &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The support of GSAP also has some trouble with finding the problem. Is there something in the deployment that doesn't handle or read GSAP's files correctly? It seems .npmrc or .tgz file can't found when deploying.&lt;BR /&gt;&lt;BR /&gt;We have exhausted so many options and tried so many things but without success ;(&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 09:05:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1028462#M40319</guid>
      <dc:creator>BelBarakat</dc:creator>
      <dc:date>2024-08-17T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: REACT modules, nx deploy app in combination with GSAP Business failure</title>
      <link>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1051024#M40877</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/776255"&gt;@BelBarakat&lt;/a&gt;&amp;nbsp;did you manage to solve or work around this issue?&lt;BR /&gt;Looks like Hubspot is actively rejecting .npmrc files&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 10:56:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1051024#M40877</guid>
      <dc:creator>brtdwchtr</dc:creator>
      <dc:date>2024-10-07T10:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: REACT modules, nx deploy app in combination with GSAP Business failure</title>
      <link>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1057823#M41027</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/116484"&gt;@brtdwchtr&lt;/a&gt; I uploaded the .tgz file to my own server and changed the package.json to this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dependencies": {
    "@gsap/react": "^2.1.1",
    "@hubspot/cms-components": "latest",
    "autoprefixer": "^10.4.19",
    "gsap": "http://myserver.com/gsap-bonus.tgz"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;When deploying the app it pulles it directly from my server without problems. It's a way around but not ideal. I hope Hubspot will fix this problem!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 11:26:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/REACT-modules-nx-deploy-app-in-combination-with-GSAP-Business/m-p/1057823#M41027</guid>
      <dc:creator>BelBarakat</dc:creator>
      <dc:date>2024-10-21T11:26:05Z</dc:date>
    </item>
  </channel>
</rss>

