Open renukote opened 2 months ago
Since it's showing partytown library is not being found, I also tried manually pushing all the lib files into the static folder and deployed it to live to see if that resolves the issue. Even that didn't work. I got the above error in the console.
Describe the bug
I'm using partytown version
^0.10.2
in my Gatsy project to load GTM and Netlify to host the repo. Everything works fine in preview deployments but as soon as I make it live, partytown call in the network tab throws 404.Screenshot from live site
Screenshot from deployment preview
I'm loading all the lib files in
gatsby-node.js
as suggested in https://partytown.builder.io/gatsbyI tried using both
onPreBuild
andonPreBootstrap
but the output is the same. I tried it twice on the production site and reverted it.Here is the code from my project
gatsby-node.js
gatsby-ssr.js (inside onRenderBody)
package.json (inside dependencies)
"@builder.io/partytown": "^0.10.2",
Am I missing something here?
Reproduction
-
Steps to reproduce
Browser Info
Chromium
Additional Information
No response